Skip to content

Commit 85e760e

Browse files
committed
Cleanup code
1 parent aa12854 commit 85e760e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ArduinoIoTCloud.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ void ArduinoIoTCloudClass::requestLastValue()
346346
{
347347
// Send the getLastValues CBOR message to the cloud
348348
// [{0: "r:m", 3: "getLastValues"}] = 81 A2 00 63 72 3A 6D 03 6D 67 65 74 4C 61 73 74 56 61 6C 75 65 73
349-
const uint8_t data[] = { 0x81, 0xA2, 0x00, 0x63, 0x72, 0x3A, 0x6D, 0x03, 0x6D, 0x67, 0x65, 0x74, 0x4C, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6C, 0x75, 0x65, 0x73 };
350-
writeShadowOut(data, sizeof(data));
349+
const uint8_t CBOR_REQUEST_LAST_VALUE_MSG[] = { 0x81, 0xA2, 0x00, 0x63, 0x72, 0x3A, 0x6D, 0x03, 0x6D, 0x67, 0x65, 0x74, 0x4C, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6C, 0x75, 0x65, 0x73 };
350+
writeShadowOut(CBOR_REQUEST_LAST_VALUE_MSG, sizeof(CBOR_REQUEST_LAST_VALUE_MSG));
351351
}
352352

353353
void ArduinoIoTCloudClass::connectionCheck()

src/ArduinoIoTCloud.h

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ class ArduinoIoTCloudClass {
156156
BearSSLClient* _bearSslClient;
157157
MqttClient* _mqttClient;
158158
int _lastSyncRequestTickTime;
159-
bool _callGetLastValueCallback;
160159

161160

162161
// Class attribute to define MTTQ topics 2 for stdIn/out and 2 for data, in order to avoid getting previous pupblished payload

0 commit comments

Comments
 (0)