Skip to content

Commit

Permalink
Fix multi token support (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmod authored Mar 9, 2024
1 parent 10cdc7e commit e62e1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpaygo_metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void handleMetricsResponseReceived() {
if (receivedJSON.containsKey("tkl")) {
JsonArray tokens = receivedJSON["tkl"];
for (int i = 0; i < tokens.size(); i++) {
uint32_t receivedToken = atoi(tokens[0]);
uint32_t receivedToken = atoi(tokens[i]);
debugPrint("INFO: Received Token in Metrics response: ");
debugPrintln(receivedToken);
tokenReceived(receivedToken);
Expand Down

0 comments on commit e62e1d5

Please sign in to comment.