Skip to content

Commit 20930b4

Browse files
committed
fix: Address PR Feedback
1 parent cdc1938 commit 20930b4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ paragraph=Originally part of ArduinoIoTCloud
77
category=Communication
88
url=https://github.com/arduino-libraries/Arduino_ConnectionHandler
99
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga,renesas_portenta,renesas_uno,mbed_edge,stm32
10-
depends=Arduino_DebugUtils, Blues Wireless Notecard (>=1.6.0), WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN
10+
depends=Arduino_DebugUtils, WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN, Blues Wireless Notecard (>=1.6.0)

src/Arduino_NotecardConnectionHandler.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int NotecardConnectionHandler::syncSecretDeviceKey (const String & secret_device
223223
result = NotecardCommunicationError::NOTECARD_ERROR_GENERIC;
224224
} else if (J *req = _notecard.newRequest("var.set")) {
225225
JAddStringToObject(req, "file", NOTEFILE_SECURE_DATABASE);
226-
JAddStringToObject(req, "name", "arduino_iot_cloud_secret_key");
226+
JAddStringToObject(req, "name", "secret_device_key");
227227
if (secret_device_key_.length() > 0) {
228228
JAddStringToObject(req, "text", secret_device_key_.c_str());
229229
}
@@ -448,7 +448,6 @@ NetworkConnectionState NotecardConnectionHandler::update_handleInit()
448448
}
449449
#endif
450450

451-
#if defined(BOARD_HAS_SECRET_KEY)
452451
// Set database template to support LoRa/Satellite Notecard
453452
if (NetworkConnectionState::INIT == result) {
454453
if (J *req = _notecard.newRequest("note.template")) {
@@ -483,7 +482,6 @@ NetworkConnectionState NotecardConnectionHandler::update_handleInit()
483482
result = NetworkConnectionState::ERROR; // Assume the worst
484483
}
485484
}
486-
#endif
487485

488486
// Set inbound template to support LoRa/Satellite Notecard
489487
if (NetworkConnectionState::INIT == result) {

0 commit comments

Comments
 (0)