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
This commit is contained in:
Florian authored and GitHub committed 2018-04-21 19:22:36 +02:00
1 parent 0412461d66
commit 513d71c544
18 files changed
+1382

No files matched your search

+33
View File
@@ -73,6 +73,9 @@
#ifdef ZgatewayIR
#include "config_IR.h"
#endif
#ifdef Zgateway2G
#include "config_2G.h"
#endif
#ifdef ZactuatorONOFF
#include "config_ONOFF.h"
#endif
@@ -329,6 +332,9 @@ void setup()
#ifdef ZactuatorONOFF
setupONOFF();
#endif
#ifdef Zgateway2G
setup2G();
#endif
#ifdef ZgatewayIR
setupIR();
#endif
@@ -625,6 +631,11 @@ void loop()
trc(F("BTtoMQTT OK"));
#endif
#endif
#ifdef Zgateway2G
if(_2GtoMQTT()){
trc(F("2GtoMQTT OK"));
}
#endif
#ifdef ZgatewayRFM69
if(RFM69toMQTT())
trc(F("RFM69toMQTT OK"));
@@ -705,6 +716,9 @@ digitalWrite(led_send, LOW);
#ifdef ZgatewayRF2
MQTTtoRF2(topicOri, datacallback);
#endif
#ifdef Zgateway2G
MQTTto2G(topicOri, datacallback);
#endif
#ifdef ZgatewaySRFB
MQTTtoSRFB(topicOri, datacallback);
#endif
@@ -761,3 +775,22 @@ void trc(String msg){
Serial.println(msg);
}
}
void trc(int msg){
if (TRACE) {
Serial.println(msg);
}
}
void trc(uint32_t msg){
if (TRACE) {
Serial.println(msg);
}
}
void trc(float msg){
if (TRACE) {
Serial.println(msg);
}
}