mirror of
https://github.com/Cyclenerd/meshcore-bot.git
synced 2026-03-28 17:42:46 +01:00
get adverts
This commit is contained in:
@@ -211,6 +211,15 @@ async function onChannelMessageReceived(message) {
|
||||
}
|
||||
}
|
||||
|
||||
// listen for adverts
|
||||
connection.on(Constants.PushCodes.Advert, async (advert) => {
|
||||
try {
|
||||
console.log(`[${getTimestamp()}] Advert: ${Buffer.from(advert.publicKey).toString('hex')}`);
|
||||
} catch(e) {
|
||||
console.error("Advert could not be retrieved", e);
|
||||
}
|
||||
});
|
||||
|
||||
async function getRepeaterTelemetry(publicKeyPrefix, repeaterPassword) {
|
||||
console.log("Fetching repeater status and telemetry...");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user