Open manishgdev opened 6 years ago
I am using
I am building the project from a blank template. Below is the mos.yml
` libs:
config_schema:
Below is the init.js code :- ` load('api_config.js'); load('api_rpc.js'); load('api_timer.js'); load("api_ir.js");
let pin = Cfg.get('ir.pin');
let ir = IR.Receiver.NEC.create(pin, function(code) { print("IR", code); }, null);
RPC.addHandler('IR.Pin', function(args) { return { msg: "IR Connected to "+pin }; }); `
after building and flashing the project on ESP8266 I am not able to see anything in console on pressing any button from IR remote, though the onboard LED on ESP8266 is blinking on receiving IR signal.
Please suggest if I am missing out something
I am using
I am building the project from a blank template. Below is the mos.yml
` libs:
config_schema:
Below is the init.js code :- ` load('api_config.js'); load('api_rpc.js'); load('api_timer.js'); load("api_ir.js");
let pin = Cfg.get('ir.pin');
let ir = IR.Receiver.NEC.create(pin, function(code) { print("IR", code); }, null);
RPC.addHandler('IR.Pin', function(args) { return { msg: "IR Connected to "+pin }; }); `
after building and flashing the project on ESP8266 I am not able to see anything in console on pressing any button from IR remote, though the onboard LED on ESP8266 is blinking on receiving IR signal.
Please suggest if I am missing out something