You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I am using
I am building the project from a blank template.
Below is the mos.yml
`
libs:
- origin: https://github.com/mongoose-os-libs/ca-bundle
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/mjs # <-- Add Support for mJS engine
- origin: https://github.com/mongoose-os-libs/ir # <-- IR Library
config_schema:
- ["ir", "o", {title: "Custom Settings for IR Receiver"}]
- ["ir.pin", "i", 4, {title: "GPIO pin the IR sensor is attached to"}]
`
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
The text was updated successfully, but these errors were encountered: