Ive got some domotic stuff at home, (COCO)
Ive sniffed some code from the coco.
But how do i send the code back to the receiver. How do i define A_aan and A_uit.
This is the simpliest code i found, just to start trying:
Code:
#include <RCSwitch.h>
#define A_aan 327701
#define A_uit 327700
RCSwitch mySwitch = RCSwitch();
void setup() {
pinMode(7, OUTPUT);
mySwitch.enableTransmit(7);
}
void loop() {
mySwitch.send(A_aan, 24);
delay(2000);
mySwitch.send(A_uit, 24);
delay(1000);
}
And this code i sniffed.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 on, period: 239us.
Addr 31285280 unit 0 off, period: 238us.
Addr 31285280 unit 0 off, period: 239us.
Addr 31285280 unit 0 off, period: 239us.
Addr 31285280 unit 0 off, period: 239us.
Addr 31285280 unit 0 off, period: 239us.
Addr 31285280 unit 0 off, period: 240us.
Addr 31285280 unit 0 off, period: 239us.
Addr 31285280 unit 0 off, period: 239us.
Newbie question, what will i have to fill in on the define lines?