mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 10:22:31 +02:00
first version for user js tasks
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
(function(){
|
||||
let isActive=false;
|
||||
window.esp32nmea2k.registerListener((id,data)=>{
|
||||
if (id === 0){
|
||||
//data is capabilities
|
||||
if (data.testboard) isActive=true;
|
||||
}
|
||||
if (isActive){
|
||||
console.log("exampletask listener",id,data);
|
||||
}
|
||||
})
|
||||
})();
|
||||
Reference in New Issue
Block a user