@@ -31,12 +31,12 @@ void LiveObjectsBase::paramTyper(const String& name, bool* variable, LiveObjects
31
31
else
32
32
addTypedParam (name, variable, type, T_BOOL, callback);
33
33
}
34
- void LiveObjectsBase::paramTyper (const String& name, char * variable, LiveObjects_parameterType type, onParameterUpdateCallback callback) {
34
+ /* void LiveObjectsBase::paramTyper(const String& name, char* variable, LiveObjects_parameterType type, onParameterUpdateCallback callback) {
35
35
if (type == IMPLICIT)
36
36
addTypedParam(name, variable, INTEGER, T_CHAR, callback);
37
37
else
38
38
addTypedParam(name, variable, type, T_CHAR, callback);
39
- }
39
+ }*/
40
40
#if not defined ESP8266 && not defined ESP32 && not defined ARDUINO_AVR_FEATHER32U4
41
41
void LiveObjectsBase::paramTyper (const String& name, int * variable, LiveObjects_parameterType type, onParameterUpdateCallback callback) {
42
42
if (type == IMPLICIT)
@@ -111,9 +111,9 @@ void LiveObjectsBase::ptrTyper(const LiveObjects_parameter param, const JsonDocu
111
111
case T_BOOL:
112
112
updateParameter (param, (bool *)param.value , configIn, configOut);
113
113
break ;
114
- case T_CHAR:
114
+ /* case T_CHAR:
115
115
updateParameter(param, (char*)param.value, configIn, configOut);
116
- break ;
116
+ break;*/
117
117
#ifndef ESP8266
118
118
case T_INT:
119
119
updateParameter (param, (int *)param.value , configIn, configOut);
@@ -301,7 +301,7 @@ void LiveObjectsBase::sendData(const String customPayload) {
301
301
{
302
302
StaticJsonDocument<PAYLOAD_DATA_SIZE> payload;
303
303
deserializeJson (payload, customPayload);
304
- if (!payload. containsKey (JSONMODEL )) payload[JSONMODEL] = m_sModel;
304
+ if (!payload[JSONMODEL]. is < const char *>( )) payload[JSONMODEL] = m_sModel;
305
305
publishMessage (m_sTopic, payload);
306
306
}
307
307
else publishMessage (m_sTopic, const_cast <String&>(customPayload));
0 commit comments