mirror of
https://github.com/Cyclenerd/meshcore-bot.git
synced 2026-05-05 21:12:41 +02:00
device info
This commit is contained in:
@@ -99,6 +99,14 @@ connection.on("connected", async () => {
|
||||
// we are now connected
|
||||
console.log("Connected");
|
||||
|
||||
// query device info
|
||||
try {
|
||||
const device = await connection.deviceQuery();
|
||||
console.log(`[${getTimestamp()}] Device info`, device);
|
||||
} catch (e) {
|
||||
console.error("Error getting device info", e);
|
||||
}
|
||||
|
||||
// update clock on meshcore device
|
||||
console.log("Sync Clock...");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user