@@ -155,6 +155,17 @@ void ArduinoIoTCloudLPWAN::printDebugInfo() {
155155 Debug.print (DBG_INFO, " Thing ID: %s" , getThingId ().c_str ());
156156}
157157
158+ /* *****************************************************************************
159+ * PRIVATE MEMBER FUNCTIONS
160+ ******************************************************************************/
161+
162+ void ArduinoIoTCloudLPWAN::sendPropertiesToCloud () {
163+ uint8_t data[DEFAULT_CBOR_LORA_MSG_SIZE];
164+ int const length = _thing.encode (data, sizeof (data), true );
165+ if (length > 0 ) {
166+ writeProperties (data, length);
167+ }
168+ }
158169
159170int ArduinoIoTCloudLPWAN::writeProperties (const byte data[], int length) {
160171 int retcode = _connection->write (data, length);
@@ -168,18 +179,6 @@ int ArduinoIoTCloudLPWAN::writeProperties(const byte data[], int length) {
168179 return 1 ;
169180}
170181
171- /* *****************************************************************************
172- * PRIVATE MEMBER FUNCTIONS
173- ******************************************************************************/
174-
175- void ArduinoIoTCloudLPWAN::sendPropertiesToCloud () {
176- uint8_t data[DEFAULT_CBOR_LORA_MSG_SIZE];
177- int const length = _thing.encode (data, sizeof (data), true );
178- if (length > 0 ) {
179- writeProperties (data, length);
180- }
181- }
182-
183182/* *****************************************************************************
184183 * EXTERN DEFINITION
185184 ******************************************************************************/
0 commit comments