Skip to content

Commit

Permalink
add example listener
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Nov 14, 2024
1 parent 048a16d commit 506dd7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/exampletask/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
const infoUrl='https://github.com/wellenvogel/esp32-nmea2000/tree/master/lib/exampletask';
let boatItemName;
let boatItemElement;
api.registerListener((id,data)=>{
if (isActive){
console.log("exampletask status listener",data);
}
},api.EVENTS.status)
api.registerListener((id,data)=>{
if (id === api.EVENTS.init){
//data is capabilities
Expand Down

0 comments on commit 506dd7e

Please sign in to comment.