Florian
1a0dacaf3f
Remove mono core option for ESP32 BLE
...
this options is no longer used as now the ESP32 is a stable board with multicore option activated
2019-06-21 23:03:37 +02:00
Florian
650d0877ab
Enable auto reconnection to the broker if connection is lost more than 30s
...
#378
#398
by reseting the board instead of going to setup function
2019-05-27 22:45:44 +02:00
Florian
9eb632001c
add message if wrong pubsubclient library used
2019-04-13 12:56:41 +02:00
Florian
4dafcd3779
correct deduplication issue with SRFB and improve OMG performance
...
by reducing the receivingMQTT call numbers
https://community.openmqttgateway.com/t/seeing-duplicated-messages/398/7
2019-04-01 22:07:28 +02:00
Florian
54d95158c7
Separate list of contributors for main file reading improvment
...
add also missing contributors
2019-03-27 20:29:49 +01:00
Florian
e6191915e3
correct json buffer size optimizations
2019-03-19 21:47:29 +01:00
Florian
60f68d00f4
publish discovery for sensors BLE once per run, add ble white and black list
...
Avoid publishing auto discovery on a time basis
publish auto discovery only one time per BLE sensor
add BLE white and black list implementation
set black list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"black-list":["012314551615","4C6577889C79","edfrgtyjulik"]}'
set white list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"white-list":["012314551615","4C65A5553C79","edfrgtyjulik"]}'
2019-03-18 23:29: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
1ab21b3c37
Add LORA gateway
...
first implementation of a lora gateway integration, tested on ttgo heltec boards with embedded lora module #356
Sending and receiving working
2019-02-21 19:53:31 +01:00
Florian
4f90ea375f
add log output through mqtt
...
#135
//#define subjectTRACEtoMQTT Base_Topic Gateway_Name "/log" //uncomment if you want to see traces on /log topic
2019-02-15 21:34:07 +01:00
Florian
e4e7319372
Update OpenMQTTGateway.ino
2019-01-31 22:10:58 +01:00
Florian
efadb696b9
add wifimanager config portal timeout
...
#350 in case of power outage so as to avoid to pop up the web page before the mqtt server restart
2019-01-30 20:52:44 +01:00
Florian
d169778a4f
remove cleanFS macro and correct reseting when mqtt fail at start
...
clean FS now available from Arduino IDE tools menu (erase flash)
2019-01-26 16:19:29 +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
4727e328f4
fix typo mistake
...
#324
2018-12-16 17:32:33 +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
81c02c850e
Mqtt discovery ( #320 )
...
* add mqtt discovery (compatibile with home assistant) with omg status binary sensor & bme280 sensor
* added mqtt discovery to Test_config.h for ESP32 (ESP8266 & other boards was not tested)
* include support for ESP8266 & arduino mega
* fix getting MAC for esp8266
* esp8266 fix
* make mqtt discovery functions functions more generic, readable and easy to use & extend
* make mqtt discovery functions functions more generic, readable and easy to use & extend PART 2
* remove the macro for each attribute and supposing that if there is a bme280 we expose all
2018-11-28 21:25:27 +01:00
Florian
7493d64d05
Update contributor list
2018-11-16 22:16:39 +01:00
Florian
469bb48d52
correct sonoff rf bridge issue not communicating with RF module
...
#310
2018-11-14 07:27:57 +01:00
Florian
ae3bbb7321
correct double variable declaration and use arduino json implicit cast
2018-11-09 22:40:53 +01:00
animavitis
a74eb76931
fix ESP32 ble ( #304 )
...
* remove redundant code for home presence
* hopefully fix ESP32 BLE hangs
* basic support for duplicate detection when JSON publishing is active
2018-11-09 22:19:02 +01:00
Florian
0e97e8615f
remove unecessary variable and PilighttoMQTT call
2018-11-05 22:20:34 +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
McGr3g0r
c2e55956e9
multi gpio input module ( #278 )
...
* GPIOKeyCode module added
2018-10-29 20:08:00 +01:00
Balazs Keresztury
a4f571e77e
Introduced WifiManager_ssid variable and documented user_config.h ( #289 )
...
* Commented user_config.h to clarify usage of WifiManager
* Introduced WifiManager_ssid variable
* Added changes to Test_config.h too
2018-10-25 22:26:44 +02:00
Balazs Keresztury
d761f1d13a
Increased size of mqtt_pass to char[30] ( #288 )
...
* Increased size of mqtt_pass to char[30]
* modified test_config.h too
2018-10-23 20:28:09 +02:00
Florian
c1e13c5d24
Merge pull request #242 from steadramon/master
...
ESPilight support
2018-10-14 07:40:43 +02:00
Florian
69e0428084
correct impossibility to read value with HM10
...
#281 and make the code more flexible (deduct an offset from a key value instead of fixed offset)
2018-10-13 21:44:23 +02:00
1technophile
0a4255f58c
replace the TRACE runtime condition by a buildtime one so as to decrease program size
2018-09-22 12:55:14 +02:00
Florian
f594612dde
Comments improvment ( #275 )
...
* Comments improvment
2018-09-22 12:44:58 +02:00
Florian
6e3a52cbf3
increase the list of boards that have more memory available for buffer and max MQTT_MAX_PACKET_SIZE ( #274 )
2018-09-22 12:34:58 +02:00
steadramon
0e743a0e33
Merge branch 'master' into master
2018-09-21 17:56:30 +01:00
Florian
5d4c788e20
Arduino: Automatic set advanced network config
...
when first value of dns or gateway is filled
#268
2018-09-13 22:11:54 +02:00
Florian
cd3a2a0499
adaptative MQTT MAX PACKET SIZE
...
change mqtt max packet size depending on the board and display the value on serial monitor
2018-09-13 22:10:18 +02:00
QuagmireMan
0f118c2020
GPIOInput Third Time is a Charm! ( #258 )
...
* Added 2 files via upload
* Update OpenMQTTGateway.ino
* Update Test_config.h
2018-08-23 21:07:29 +02:00
Florian
93c2c6eb56
convert ip to string
...
https://community.openmqttgateway.com/t/really-minor-improvement/92
2018-08-19 20:12:13 +02:00
Paul
b047f5a505
ESPilight support
...
Support for ESPilight - only recieve at the moment
2018-07-28 20:48:44 +01:00
Florian
1dd68ab078
Missing call for RF315
...
call for emitting RF from MQTT was not done before this commit
2018-06-26 22:45:33 +02:00
Florian
474e7ab70c
When wifi is lost OMG is going to AP mode ( #220 )
...
* When wifi is lost OMG is going to AP mode
Avoid that except when OMG has never been connected to MQTT
2018-06-26 20:37:37 +02:00
Florian
0f6020edfe
correct potential crash of ESP when calling trc function
...
#211
2018-06-07 20:21:41 +02:00
Florian
76859e54fe
add cleanFS into user config and correct missing rf315 subject subscribe
2018-06-07 20:20:11 +02:00
Florian
b568e7137c
add 315mhz RF gateway ( #209 )
...
based on RF gateway add the same implementation for 315mhz to facilitate the integration for whom who wants to use 433 and 315
2018-05-30 21:49:46 +02:00
Florian
4ef82289e1
Publish gateway state ( #207 )
...
* add ssid, rssi and memory publishing to mqtt
for ESP boards
* add activated modules and uptime
2018-05-24 23:01:31 +02:00
Florian
c0fca71619
remove string in trace call
...
so as to decrease sketch size
2018-05-16 21:56:29 +02:00
Florian
79666d4713
minor correction on trace
...
replace serial.print by default trace system of OMG
2018-04-29 21:23:45 +02:00
Florian
513d71c544
A6 A7 gateway (GSM GPRS) ( #195 )
...
* init 2G gateway with SMS sending and receiving
* A6lib add
* add 2Ggateway call from setup and loop
* add schematic and image
2018-04-21 19:22:36 +02:00
Florian
d28a1f40dd
add missing include
2018-04-11 21:15:12 +02:00
Florian
ea987ca945
wifi reconnection workaround on esp32
...
#173 , currently wifi autoreconnection on ESP32 doesn't work reliably. To bypass this issue I added a reconnection after a failure_number
2018-04-11 20:03:31 +02:00
Florian
02970519b6
simplify module inclusion in config
...
#166
config files are now inluded in openmqttgateway.ino and doesn't need to be uncommented or commented in user_config.h
2018-04-11 19:37:11 +02:00