mirror of
https://github.com/Cyclenerd/meshcore-bot.git
synced 2026-03-28 17:42:46 +01:00
better device info
This commit is contained in:
@@ -102,7 +102,8 @@ connection.on("connected", async () => {
|
||||
// query device info
|
||||
try {
|
||||
const device = await connection.deviceQuery();
|
||||
console.log(`[${getTimestamp()}] Device info`, device);
|
||||
console.log("Model:", device.manufacturerModel);
|
||||
console.log("Firmware build date:", device.firmware_build_date);
|
||||
} catch (e) {
|
||||
console.error("Error getting device info", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user