Zgateway rfm69 (#88)
* 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
This commit is contained in:
1 parent
2ef56b18ac
commit
ba51e340d2
7 files changed
+317
-4
No files matched your search
+14
-1
@@ -120,7 +120,7 @@ void callback(char* topic, byte* payload, unsigned int length) {
|
||||
void setup()
|
||||
{
|
||||
//Launch serial for debugging purposes
|
||||
Serial.begin(115200);
|
||||
Serial.begin(SERIAL_BAUD);
|
||||
|
||||
#ifdef ESP8266
|
||||
//Begining wifi connection in case of ESP8266
|
||||
@@ -176,6 +176,9 @@ void setup()
|
||||
#ifdef ZgatewayBT
|
||||
setupBT();
|
||||
#endif
|
||||
#ifdef ZgatewayRFM69
|
||||
setupRFM69();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
@@ -257,6 +260,12 @@ void loop()
|
||||
if(resultBT)
|
||||
trc(F("BT sent by MQTT"));
|
||||
#endif
|
||||
#ifdef ZgatewayRFM69
|
||||
boolean resultRFM69 = RFM69toMQTT();
|
||||
if(resultRFM69)
|
||||
trc(F("RFM69 data sent by MQTT"));
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -324,6 +333,10 @@ void receivingMQTT(char * topicOri, char * datacallback) {
|
||||
#ifdef ZgatewayIR
|
||||
MQTTtoIR(topicOri, datacallback);
|
||||
#endif
|
||||
#ifdef ZgatewayRFM69
|
||||
MQTTtoRFM69(topicOri, datacallback);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
//trace
|
||||
|
||||
Reference in new issue
Block a user