23 lines
354 B
C++
23 lines
354 B
C++
#include "Mqtt433Gateway.h"
|
|
|
|
#include <Streaming.h>
|
|
#include <avr/wdt.h>
|
|
|
|
#include "mqttclient.h"
|
|
#include "s433client.h"
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
Serial << "Mqtt433Gateway starting ..." << endl;
|
|
|
|
MqttClientNS::begin();
|
|
s433ClientNS::begin();
|
|
|
|
wdt_enable(WDTO_8S);
|
|
}
|
|
|
|
void loop() {
|
|
MqttClientNS::exec();
|
|
s433ClientNS::exec();
|
|
}
|