How send IR code on HTTP or MQTT?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
marceloMiranda
Normal user
Posts: 10
Joined: 12 Dec 2018, 18:01

How send IR code on HTTP or MQTT?

#1 Post by marceloMiranda » 31 Jan 2019, 17:19

I tried to use as a command, in a rule, an MQTT or HTTP.
But IR don't work....

With the: IRremoteESP8266/examples/IRrecvDumpV2 I get code 8166817E

IRrecvDumpV2 is now running and waiting for IR input on Pin 14
Timestamp : 000035.723
Encoding : NEC
Code : 8166817E (32 bits)
Library : v2.5.2

Raw Timing[71]:
+ 9068, - 4444, + 624, - 1614, + 624, - 496, + 626, - 496,
+ 624, - 496, + 624, - 498, + 624, - 498, + 624, - 492,
+ 624, - 1618, + 624, - 496, + 624, - 1620, + 624, - 1616,
+ 628, - 498, + 624, - 496, + 620, - 1618, + 624, - 1618,
+ 624, - 496, + 624, - 1614, + 624, - 498, + 624, - 498,
+ 624, - 498, + 624, - 498, + 624, - 498, + 624, - 496,
+ 624, - 1614, + 628, - 492, + 624, - 1618, + 624, - 1620,
+ 624, - 1614, + 628, - 1614, + 624, - 1618, + 624, - 1620,
+ 624, - 498, + 624, - 42326, + 9072, - 2208, + 602

uint16_t rawData[71] = {9068, 4444, 624, 1614, 624, 496, 626, 496, 624, 496, 624, 498, 624, 498, 624, 492, 624, 1618, 624, 496, 624, 1620, 624, 1616, 628, 498, 624, 496, 620, 1618, 624, 1618, 624, 496, 624, 1614, 624, 498, 624, 498, 624, 498, 624, 498, 624, 498, 624, 496, 624, 1614, 628, 492, 624, 1618, 624, 1620, 624, 1614, 628, 1614, 624, 1618, 624, 1620, 624, 498, 624, 42326, 9072, 2208, 602}; // NEC 8166817E
uint32_t address = 0x6681;
uint32_t command = 0x81;
uint64_t data = 0x8166817E;

Converting for DEC=2170978686

And i tried HTTP:
http://My Ip/control?cmd=IRSEND,NEC,8166817E,32
http://My Ip/control?cmd=IRSEND,NEC,2170978686,32

MQTT
IR/SEND
IR/GPIO/4
IR/SEND/GPIO/4

Rules.... But I don't know how

:?:

I using GIT version:mega-20181112 IR

With the: IRremoteESP8266/examples/IRServer work very well.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests