correct validation url
This commit is contained in:
parent
bc4880d59c
commit
0e9c3dcd74
1 changed files with 2 additions and 4 deletions
|
@ -249,14 +249,12 @@ void handleData1Interrupt() {
|
|||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Sending Request to Tinance2 for card: " + fullCardID);
|
||||
#endif
|
||||
|
||||
// Set the endpoint URL
|
||||
String url = tinance2_url;
|
||||
|
||||
// Create the JSON payload
|
||||
String payload = "{\"full_card_id\":\"" + String(fullCardID) + "\"}";
|
||||
// Send the HTTP request and get the response
|
||||
Tinance2HttpClient httpClient;
|
||||
std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_readerinfo, "GET", "");
|
||||
std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_validatecard, "GET", "");
|
||||
String response = responsePair.first;
|
||||
int httpResponseCode = responsePair.second;
|
||||
|
||||
|
|
Loading…
Reference in a new issue