@@ -457,17 +457,16 @@ int AlgoIoT::submitTransactionToAlgorand()
457457 DEBUG_SERIAL.println (" \n Ready to submit transaction to Algorand network" );
458458 DEBUG_SERIAL.println ();
459459 #endif
460- iErr = submitTransaction (msgPackTx, transactionID ); // Returns HTTP code
460+ iErr = submitTransaction (msgPackTx); // Returns HTTP code
461461 if (iErr != 200 ) // 200 = HTTP OK
462462 { // Something went wrong
463463 return ALGOIOT_TRANSACTION_ERROR;
464464 }
465465 // OK: our transaction, carrying sensor data in the Note field,
466466 // was successfully submitted to the Algorand blockchain
467467 #ifdef LIB_DEBUGMODE
468- DEBUG_SERIAL.print (" \t *** Algorand transaction successfully submitted with ID=" );
469- DEBUG_SERIAL.print (transactionID);
470- DEBUG_SERIAL.println (" ***\n " );
468+ DEBUG_SERIAL.print (" \t Transaction successfully submitted with ID=" );
469+ DEBUG_SERIAL.println (getTransactionID ());
471470 #endif
472471
473472 return ALGOIOT_NO_ERROR;
@@ -1165,7 +1164,7 @@ int AlgoIoT::createSignedBinaryTransaction(msgPack mPack, const uint8_t signatur
11651164// Last method to be called, after all the others
11661165// Returns http response code (200 = OK) or AlgoIoT error code
11671166// TODO: On error codes 5xx (server error), maybe we should retry after 5s?
1168- int AlgoIoT::submitTransaction (msgPack msgPackTx, char * transactionID )
1167+ int AlgoIoT::submitTransaction (msgPack msgPackTx)
11691168{
11701169 String httpRequest = m_httpBaseURL + POST_TRANSACTION;
11711170
0 commit comments