Skip to content

Commit d128f9d

Browse files
ArduinoIoTCloudNotecard removing params
1 parent 45231c0 commit d128f9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ArduinoIoTCloudNotecard.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void ArduinoIoTCloudNotecard::processCommand(const uint8_t *buf, size_t len)
316316
case CommandId::ThingUpdateCmdId:
317317
{
318318
DEBUG_VERBOSE("ArduinoIoTCloudNotecard::%s [%d] device configuration received", __FUNCTION__, millis());
319-
String new_thing_id = String(command.thingUpdateCmd.params.thing_id);
319+
String new_thing_id = String(command.thingUpdateCmd.thing_id);
320320

321321
if (!new_thing_id.length()) {
322322
DEBUG_DEBUG("ArduinoIoTCloudNotecard::%s received null Thing ID.", __FUNCTION__);
@@ -341,7 +341,7 @@ void ArduinoIoTCloudNotecard::processCommand(const uint8_t *buf, size_t len)
341341

342342
case CommandId::ThingDetachCmdId:
343343
{
344-
if (!_device.isAttached() || _thing_id != String(command.thingDetachCmd.params.thing_id)) {
344+
if (!_device.isAttached() || _thing_id != String(command.thingDetachCmd.thing_id)) {
345345
DEBUG_VERBOSE("ArduinoIoTCloudNotecard::%s [%d] thing detach rejected", __FUNCTION__, millis());
346346
}
347347

@@ -361,8 +361,8 @@ void ArduinoIoTCloudNotecard::processCommand(const uint8_t *buf, size_t len)
361361
{
362362
DEBUG_VERBOSE("ArduinoIoTCloudNotecard::%s [%d] last values received", __FUNCTION__, millis());
363363
CBORDecoder::decode(_thing.getPropertyContainer(),
364-
(uint8_t*)command.lastValuesUpdateCmd.params.last_values,
365-
command.lastValuesUpdateCmd.params.length, true);
364+
(uint8_t*)command.lastValuesUpdateCmd.last_values,
365+
command.lastValuesUpdateCmd.length, true);
366366
_thing.handleMessage((Message*)&command);
367367
execCloudEventCallback(ArduinoIoTCloudEvent::SYNC);
368368

@@ -372,7 +372,7 @@ void ArduinoIoTCloudNotecard::processCommand(const uint8_t *buf, size_t len)
372372
* current CBOR library allocates an array in the heap thus we need to
373373
* delete it after decoding it with the old CBORDecoder
374374
*/
375-
free(command.lastValuesUpdateCmd.params.last_values);
375+
free(command.lastValuesUpdateCmd.last_values);
376376
}
377377
break;
378378

0 commit comments

Comments
 (0)