Commit Graph
23 Commits
Author SHA1 Message Date
tjhowse f0d9a1e58e Add "repeat" field to RF JSON messages. (#372) 2019-03-15 18:53:47 +01:00
Florian da859cc6ae Some memory optimization for Arduino UNO following this thread:
https://community.openmqttgateway.com/t/arduino-uno-ethernet-shield-reboots-on-receiving-rf-signal-on-v-0-9/346/22
Rework led management to avoid use of global variables
and specify special JSON_MSG_BUFFER for arduino UNO
led can now be used for all the boards

generalize use of F macro
for memory optimization
change jsonbuffer calculation method
reduce pubsubclient max packet size for uno and nano
2019-03-09 17:28:54 +01:00
Florian 238bb4740f traces improvements, and code refactoring (RF315) 2019-01-31 20:43:45 +01:00
Florian 27fa38ec45 Storevalue after pub to avoid duplicates publishing in slow environment 2019-01-17 22:55:08 +01:00
Florian 68352f10e6 differentiate receiving and publishing mqtt for the new json option in user_config.h
#318 so as to avoid user with non modified controllers to have regression on receiving (per default receiving is activated for both json and simple and prioritary analysed for json)
2019-01-09 21:01:38 +01:00
Florian c7fe43eb97 code cleanup and improvment (#339)
* replace string by char array comparison

* take mac adress from user_config for arduino ethernet shield

* remove code for managing HM10 with version < v6xx

* add sys measure call for arduino mega

* code size decrease and optim
2019-01-05 18:11:30 +01:00
Florian 133e9cd33a Mqtt discovery for ha (#323)
* MQTT discovery factoring

* add DHT discovery

* BME topic macro change

* add sensors to ha discovery

* correct a comment typo #327

* let the possibility at buildtime to don't publish service data

* reduce string usage

* change MQTT ONOFF actuator to ON OFF commands instead of true false

* add ZactuatorONOFF discovery

* add simple publishing for GPIO input

* Add RF switch and gateway discovery
2018-12-16 17:05:30 +01:00
Florian d8dba15a81 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
2018-11-05 22:02:27 +01:00
Florian c0fca71619 remove string in trace call
so as to decrease sketch size
2018-05-16 21:56:29 +02:00
Florian 7c6e0ccf61 Esp32 compatibility (#145)
* esp32 init

* RF gateway ok with ESP32

* correct IR gateway compilation errors and test RF2 ok

* divide config per board type

* update test file according user_config

* differentiate variable type following IR libraries aka platforms

* implement BLE beacons detection with ESP32

* Implement multitasking on BLE gateway

* Library add and change core assignement

* change core assignement for BLE

* add mi flora value readings with ESP32

* adding some traces and removing unecessary comment

* correct compilation error due to pin assignement

* correct temperature float value and wrong mac adress rssi publishing

* add esp32 to CI

* correct esp32 ide retrieving

* correcting paths

* CI: correct architecture
* libraries update (irremote) and overwrite ble library files
2018-01-01 18:50:45 +01:00
Florian f8ede4aa94 Zgateway rf2 (#94)
* some minor correction after coadcy checks

* Put serial communication speed as a parameter in user_config.h

* complete gateway file

receiving ok
sending ko
#32

* add rfm69 to CI

* change receiver key and minor improvments

#32

now ok on receiving and sending with RFM69

* add schema and tested pinout for RFM69/RF/IR wiring

#32

* RFM69 library add

* Implement newremoteswitchlibrary for KlikAanKlikUit / ClickOnClickOff protocol

#3

* add dependency for CI and link to the library

* compilation error for arduino correction

* Sketch size decrease

* remove nano from CI
2017-09-01 00:35:26 +02:00
1technophile be7a876dfd add send panasonic IR and send MM
#53
sendPanasonic for arduino & ESP8266
sendRCMM for ESP8266
some trace reductions
2017-06-06 21:32:14 +02:00
1technophile 7382e19f67 decrease code size again 2017-06-02 23:54:01 +02:00
1technophile 77aff42a27 code size decrease 2017-06-02 23:44:53 +02:00
1technophile 9e9a2cd191 MIT -> GPL V3
#51
2017-06-02 23:18:00 +02:00
1technophile 063bf76996 RF bits length settable into mqtt topic
#24
2017-05-23 21:42:54 +02:00
1technophile 186d1cc478 Program size optimization for arduino uno 2017-05-20 14:42:15 +02:00
1technophile 4d04780553 ability to repeat signal
#27
2017-05-20 14:29:16 +02:00
1technophile 3a3b7d6482 Comment correction 2017-05-01 16:21:43 +02:00
1technophile 2f61698d68 comment update
contributors are now located on main file
2017-04-23 22:18:12 +02:00
1technophile 575eb9063e some corrections
value assignments for advanced data
progmem not available for esp8266
avoid unecessary storevalue
2017-04-21 14:09:36 +02:00
1technophile 8c174255c4 Sram optimization 2017-04-20 23:11:09 +02:00
1technophile ec90b44360 split main file so as to be able to load either RF either IR either both 2017-04-20 13:52:20 +02:00