Mqtt433Gateway/s433client.cpp

32 lines
432 B
C++
Raw Normal View History

2016-10-31 22:54:05 +01:00
/*
* canclient.cpp
*
* Created on: Oct 31, 2016
* Author: wn
*/
#include "s433client.h"
#include <Streaming.h>
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void s433ClientNS::begin() {
mySwitch.enableTransmit(10);
}
void s433ClientNS::exec() {
}
void s433ClientNS::sendMessage(uint32_t message, uint8_t length, uint8_t protocol) {
mySwitch.setProtocol(protocol);
mySwitch.send(message, length);
}