File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include < ArduinoIoTCloudLPWAN.h>
27
27
28
+ /* *****************************************************************************
29
+ CONSTANTS
30
+ ******************************************************************************/
31
+
32
+ static size_t const CBOR_LORA_MSG_MAX_SIZE = 255 ;
33
+
28
34
/* *****************************************************************************
29
35
CTOR/DTOR
30
36
******************************************************************************/
@@ -71,7 +77,7 @@ void ArduinoIoTCloudLPWAN::update() {
71
77
if (connectionCheck () != ArduinoIoTConnectionStatus::CONNECTED) return ;
72
78
73
79
if (_connection->available ()) {
74
- uint8_t msgBuf[DEFAULT_CBOR_LORA_MSG_SIZE ];
80
+ uint8_t msgBuf[CBOR_LORA_MSG_MAX_SIZE ];
75
81
uint8_t i = 0 ;
76
82
while (_connection->available ()) {
77
83
msgBuf[i++] = _connection->read ();
@@ -160,7 +166,7 @@ void ArduinoIoTCloudLPWAN::printDebugInfo() {
160
166
******************************************************************************/
161
167
162
168
void ArduinoIoTCloudLPWAN::sendPropertiesToCloud () {
163
- uint8_t data[DEFAULT_CBOR_LORA_MSG_SIZE ];
169
+ uint8_t data[CBOR_LORA_MSG_MAX_SIZE ];
164
170
int const length = _thing.encode (data, sizeof (data), true );
165
171
if (length > 0 ) {
166
172
writeProperties (data, length);
Original file line number Diff line number Diff line change 24
24
25
25
#include < ArduinoIoTCloud.h>
26
26
27
- /* *****************************************************************************
28
- CONSTANTS
29
- ******************************************************************************/
30
-
31
- static uint8_t const DEFAULT_CBOR_LORA_MSG_SIZE = 255 ;
32
-
33
27
/* *****************************************************************************
34
28
* CLASS DECLARATION
35
29
******************************************************************************/
You can’t perform that action at this time.
0 commit comments