32 lines
432 B
C++
32 lines
432 B
C++
/*
|
|
* 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(A5);
|
|
}
|
|
|
|
void s433ClientNS::exec() {
|
|
}
|
|
|
|
void s433ClientNS::sendMessage(uint32_t message, uint8_t length, uint8_t protocol) {
|
|
mySwitch.setProtocol(protocol);
|
|
mySwitch.send(message, length);
|
|
}
|
|
|
|
|
|
|
|
|