1 parent
bc847684f9
commit
6996867e53
1 file changed
+1
-1
+1
-1
@@ -384,7 +384,7 @@ void createDiscovery(char * sensor_type,
|
|||||||
|
|
||||||
|
|
||||||
if (child_device){
|
if (child_device){
|
||||||
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(5) + JSON_ARRAY_SIZE(1);
|
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(5) + JSON_ARRAY_SIZE(2);
|
||||||
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonDeviceBuffer;
|
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonDeviceBuffer;
|
||||||
JsonObject &device = jsonDeviceBuffer.createObject();
|
JsonObject &device = jsonDeviceBuffer.createObject();
|
||||||
device.set("name", Gateway_Name);
|
device.set("name", Gateway_Name);
|
||||||
|
|||||||
Reference in new issue
Block a user