1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 18:32:30 +02:00

first version for user js tasks

This commit is contained in:
andreas
2024-10-11 20:13:45 +02:00
parent f6e3fa369f
commit 98a95e62f7
4 changed files with 63 additions and 38 deletions
+12
View File
@@ -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);
}
})
})();