Closed wgcv closed 5 years ago
static unsigned char powerOn2[] = { 0xFF, 0xE8, 0x96 }; static int initied = -1; static IRDASensor *irda = NULL;
void setup() { if ((irda = new IRDASensor()) != NULL) { initied = irda->init(); } }
void loop() { if (initied == 0) { int irda_status = irda->IRDATransmit(powerOn2, 3, 100 ); Serial.printf("IrDA data sent, return %d\r\n", irda_status); } wait(1); }
Hi I'm checking the IRremote library for arduino but doesn't work with the az3166; also I'm checking the documentation (https://microsoft.github.io/azure-iot-developer-kit/docs/apis/irda/) but I don't know how to send a infrared command with *char .
For example in arudino with IRremote is like this
how i send in AZ?
But I don't know if the protocol is ok? Because doesn't work.