Decoding by `jag`, device has version <2.0.0-alpha.47>
******************************************************************************
EXCEPTION error.
OUT_OF_BOUNDS
0: List_.[] <sdk>/core/collections.toit:1780:24
1: SourceSegment.read_string_ /home/runner/work/toit/toit/tools/snapshot.toit:1335:28
2: MethodSegment.read_pubsub_entry_ /home/runner/work/toit/toit/tools/snapshot.toit:1398:14
3: MethodSegment.read_pubsub_info_.<block> /home/runner/work/toit/toit/tools/snapshot.toit:1405:33
4: Array_.<block> <sdk>/core/collections.toit:830:31
5: SmallInteger_.repeat <sdk>/core/numbers.toit:1194:3
6: Array_ <sdk>/core/collections.toit:830:10
7: List <sdk>/core/collections.toit:177:31
8: MethodSegment.read_pubsub_info_ /home/runner/work/toit/toit/tools/snapshot.toit:1405:12
9: MethodSegment.read_element_ /home/runner/work/toit/toit/tools/snapshot.toit:1421:20
10: MapSegment.read_content_.<block> /home/runner/work/toit/toit/tools/snapshot.toit:1370:18
11: SmallInteger_.repeat <sdk>/core/numbers.toit:1194:3
12: MapSegment.read_content_ /home/runner/work/toit/toit/tools/snapshot.toit:1369:12
13: SourceSegment.content /home/runner/work/toit/toit/tools/snapshot.toit:1328:33
14: MapSegment.content /home/runner/work/toit/toit/tools/snapshot.toit:1374:26
15: Program /home/runner/work/toit/toit/tools/snapshot.toit:87:68
16: SnapshotBundle.decode /home/runner/work/toit/toit/tools/snapshot.toit:198:12
17: handle_system_message /home/runner/work/toit/toit/tools/system_message.toit:44:22
18: decode_system_message /home/runner/work/toit/toit/tools/system_message.toit:89:3
19: main.<lambda> /home/runner/work/toit/toit/tools/system_message.toit:75:16
20: Command.run <pkg:pkg-cli>/cli.toit:127:33
21: main /home/runner/work/toit/toit/tools/system_message.toit:76:11
----
ar p ../output/test.snapshot uuid | hexdump -e '4/1 "%02x" "-" 2/1 "%02x" "-" 2/1 "%02x" "-" 2/1 "%02x" "-" 6/1 "%02x" ".snapshot"'
tools/system_message.toit
system_message
system_message
system_message
/toit/build/host/sdk/bin/toit.compile
EXCEPTION error.
DIVISION_BY_ZERO
0: SmallInteger_./ <sdk>/core/numbers.toit:1120:36
1: update_states ../src/status_monitor.toit:106:50
2: wifi_monitor.<lambda> ../src/status_monitor.toit:71:9
jag version
Version: v1.7.12
SDK version: v2.0.0-alpha.44
Build date: 2022-12-02T14:21:56Z
system_message.toit
system_message.toit
jag decode
jag
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.47>
******************************************************************************
As check failed: an int (100) is not a string.
0: string.+ <sdk>/core/string.toit:399:14
1: WifiInterface_.signal_strength <sdk>/net/wifi.toit:153:31
2: update_states ../src/status_monitor.toit:90:47
3: wifi_monitor.<lambda> ../src/status_monitor.toit:71:9
******************************************************************************
signal_strength
signal_strength -> float:
info := (client_ as WifiServiceClient).ap_info handle_
rssi := info[WIFI_SCAN_SSID_]
// RSSI is usually in the range [-100..-35].
rssi = min 65 (max 0 rssi + 100)
return rssi / 65.0
rssi := info[WIFI_SCAN_SSID_]
rssi := info[WIFI_SCAN_RSSI_]
/lib/net/wifi.toit
rikke-rp