Update Example20_PMP_with_L-Band_Keys_via_MQTT.ino

This commit is contained in:
PaulZC
2022-03-17 21:30:15 +00:00
parent a186664fab
commit e9d512bd6c
@@ -372,7 +372,8 @@ void mqttMessageHandler(int messageSize) {
Serial.print(F("Key: \""));
for (uint8_t digit = 0; digit < keyLengthBytes; digit++)
{
Serial.print(spartnData[keyStart + digit], HEX); // Print the key as ASCII Hex
Serial.print(spartnData[keyStart + digit] >> 4, HEX); // Print the key as ASCII Hex
Serial.print(spartnData[keyStart + digit] & 0x0F, HEX); // Print the key as ASCII Hex
}
Serial.println(F("\""));
keyStart += keyLengthBytes; // Update keyStart for the next key