From e9d512bd6c855bdc742a0add53ab2b98317e29e2 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Thu, 17 Mar 2022 21:30:15 +0000 Subject: [PATCH] Update Example20_PMP_with_L-Band_Keys_via_MQTT.ino --- .../Example20_PMP_with_L-Band_Keys_via_MQTT.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino b/examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino index a1fd250..7c075ae 100644 --- a/examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino +++ b/examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino @@ -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