Commit Graph
5 Commits
Author SHA1 Message Date
Philippe LUC 254e616f31 Some code clean, and buffer overflow prevention (2) (#126)
* Remove trailing whitespaces

* RFM69toMQTT: Add the emitting nodeID to the topic, +

 - And remove radio.receiveDone() that is unecessary.
 - Send the ACK before the publish to MQTT, to be faster
 - Prevent buffer overflow, Terminate the data with a "\0"
   - Fix issue with the sender doesn't end its string with "\0"
     and rely only on DATALEN.

* Change topic subjectGTWRFM69toMQTT to be distinct from the commands

 + comments

* MQTTtoRFM69: deduplicate the code

 - Check once and only once if the topic is good.
 - Have or not RCV_ marked doesn't change the structure, as
   valueRCV is correctly set anyway
 + realign

* MQTTtoRFM69: Limit the size of the data

 - Cut the packet to the limit of what can transmit RFM69
   - and terminate the string

* RFM69toMQTT: ACK MQTT message on subjectGTWRFM69toMQTT now contains the nodeID

* RFM69: Publish to MQTT the RSSI on transmit and ACK
2017-10-01 15:50:25 +02:00
1technophile 736d94e45d put RFM69 on D1 to avoid collision on RF receiver pin 2017-09-23 13:27:50 +02:00
1technophile 013c0b234f wrong name for interrupt pin on arduino 2017-09-17 21:50:26 +02:00
1technophile 5de2e1f517 Modify pins to match the new wiring schema 2017-09-17 21:40:57 +02:00
Florian 441ab1c0b7 User config division (#97)
* 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

* Divide user_config into one file per gateway/sensor for lisibility
2017-09-01 00:41:29 +02:00