Publish refactoring (#298)
* factoring of the publishing function * integration of json publishing to MQTT * receiving and transcode json messages from mqtt * replace the TRACE runtime condition by a buildtime one so as to decrease program size * remove retainFlag parameter not necessary for the moment * Increase the scope of tests for arduino mega and esp32 * Update arduinojson library to 5.13.3 * add macros to choose between simple or json publishing or both * differentiate build test for ATmega2560 * correct wrong sprintf definition * change IDE version for continuous integration * let default warning level in arduino ide * correct pins for ESP32 * reorganize user_config
This commit is contained in:
1 parent
f77df7347f
commit
d8dba15a81
182 files changed
+2701
-20768
No files matched your search
+3
-14
@@ -25,15 +25,6 @@
|
||||
*/
|
||||
/*----------------------BT topics & parameters-------------------------*/
|
||||
#define subjectBTtoMQTT Base_Topic Gateway_Name "/BTtoMQTT/"
|
||||
//#define subjectBTtoMQTTrssi "/rssi" // will be the default parameter on the next release, for the moment rssi is published on mac topic
|
||||
#define subjectBTtoMQTTrssi ""
|
||||
#define subjectBTtoMQTTtem "/tem"
|
||||
#define subjectBTtoMQTThum "/hum"
|
||||
#define subjectBTtoMQTTmoi "/moi"
|
||||
#define subjectBTtoMQTTfer "/fer"
|
||||
#define subjectBTtoMQTTlux "/lux"
|
||||
#define subjectBTtoMQTTbatt "/batt"
|
||||
#define subjectBTtoMQTTservicedata "/servicedata"
|
||||
#define TimeBtw_Read 55555 //define the time between 2 scans
|
||||
#define Scan_duration 10 //define the time for a scan
|
||||
#define HM-10
|
||||
@@ -42,11 +33,9 @@
|
||||
#define delimiter "4f4b2b444953413a"
|
||||
#define delimiter_length 16
|
||||
|
||||
/*-------------------HOME ASSISTANT ROOM PRESENCE !!! ESP32 only !!!!----------------------*/
|
||||
#define roomPresence //Uncomment to enable
|
||||
#ifdef roomPresence
|
||||
#define subjectHomePresence "/homePresence/salon" // will send Home Assistant room presence message to this topic (first part is same for all rooms, second is room name)
|
||||
#endif
|
||||
/*-------------------HOME ASSISTANT ROOM PRESENCE ----------------------*/
|
||||
// if not commented Home presence integration with HOME ASSISTANT is activated
|
||||
#define subjectHomePresence Base_Topic "/salon" // will send Home Assistant room presence message to this topic (first part is same for all rooms, second is room name)
|
||||
|
||||
|
||||
struct decompose
|
||||
|
||||
Reference in new issue
Block a user