Update Example20_PMP_with_L-Band_Keys_via_MQTT.ino
This commit is contained in:
+2
-1
@@ -372,7 +372,8 @@ void mqttMessageHandler(int messageSize) {
|
|||||||
Serial.print(F("Key: \""));
|
Serial.print(F("Key: \""));
|
||||||
for (uint8_t digit = 0; digit < keyLengthBytes; digit++)
|
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("\""));
|
Serial.println(F("\""));
|
||||||
keyStart += keyLengthBytes; // Update keyStart for the next key
|
keyStart += keyLengthBytes; // Update keyStart for the next key
|
||||||
|
|||||||
Reference in New Issue
Block a user