correct json buffer size optimizations
This commit is contained in:
1 parent
bbb4dd3065
commit
e6191915e3
9 files changed
+9
-15
No files matched your search
+1
-2
@@ -143,8 +143,7 @@ boolean RFM69toMQTT(void) {
|
||||
if (radio.receiveDone())
|
||||
{
|
||||
trc(F("Creating RFM69 buffer"));
|
||||
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(3);
|
||||
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonBuffer;
|
||||
StaticJsonBuffer<JSON_MSG_BUFFER> jsonBuffer;
|
||||
JsonObject& RFM69data = jsonBuffer.createObject();
|
||||
uint8_t data[RF69_MAX_DATA_LEN+1]; // For the null character
|
||||
uint8_t SENDERID = radio.SENDERID;
|
||||
|
||||
Reference in new issue
Block a user