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() {
|
2016-11-01 12:33:07 +01:00
|
|
|
mySwitch.enableTransmit(A5);
|
2016-10-31 22:54:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void s433ClientNS::exec() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void s433ClientNS::sendMessage(uint32_t message, uint8_t length, uint8_t protocol) {
|
|
|
|
mySwitch.setProtocol(protocol);
|
|
|
|
mySwitch.send(message, length);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|