I compiled OMG for my ESP 32 with platformio for esp32dev-ble
I update platformio.ini with this:
[com-esp]
lib_deps =
${env.lib_deps}
${libraries.wifimanager}
build_flags =
${env.build_flags}
-DMQTT_MAX_PACKET_SIZE=1024
'-DsimpleReceiving=true'
'-DsimplePublishing=true'
'-DTRACE=1'
;'-DCORE_DEBUG_LEVEL=4'
upload_port = COM[4]
upload_speed = 512000
It compiles properly and runs well on my ESP32.
But it keeps sending JSON value to MQTT instead of old fashion per value system I need here, despite the two flags
‘-DsimpleReceiving=true’
‘-DsimplePublishing=true’
I also tried to change User_config.h:
#define jsonPublishing true //comment if you don’t want to use Json publishing (one topic for all the parameters)
#define jsonReceiving true //comment if you don’t want to use Json reception analysis
//#define simplePublishing true //comment if you don’t want to use simple publishing (one topic for one parameter)
//#define simpleReceiving true //comment if you don’t want to use old way reception analysis
to
//#define jsonPublishing true //comment if you don’t want to use Json publishing (one topic for all the parameters)
//#define jsonReceiving true //comment if you don’t want to use Json reception analysis
#define simplePublishing true //comment if you don’t want to use simple publishing (one topic for one parameter)
#define simpleReceiving true //comment if you don’t want to use old way reception analysis
No effect neither.
What can I do ?