Rikke
01/05/2023, 1:27 PMRikke
01/05/2023, 1:27 PMDecoding 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
----
floitsch
01/05/2023, 1:28 PMRikke
01/05/2023, 1:28 PMar p ../output/test.snapshot uuid | hexdump -e '4/1 "%02x" "-" 2/1 "%02x" "-" 2/1 "%02x" "-" 2/1 "%02x" "-" 6/1 "%02x" ".snapshot"'
floitsch
01/05/2023, 1:29 PMfloitsch
01/05/2023, 1:29 PMfloitsch
01/05/2023, 1:29 PMtools/system_message.toit
.floitsch
01/05/2023, 1:29 PMfloitsch
01/05/2023, 1:30 PMsystem_message
tool must be aligned with the snapshot.floitsch
01/05/2023, 1:30 PMsystem_message
tool from one version with the snapshot of another.Rikke
01/05/2023, 1:30 PMsystem_message
toolfloitsch
01/05/2023, 1:30 PMfloitsch
01/05/2023, 1:31 PMRikke
01/05/2023, 1:32 PMRikke
01/05/2023, 1:33 PM/toit/build/host/sdk/bin/toit.compile
to make the snapshotfloitsch
01/05/2023, 1:33 PMfloitsch
01/05/2023, 1:33 PMRikke
01/05/2023, 1:34 PMfloitsch
01/05/2023, 1:34 PMRikke
01/05/2023, 1:37 PMfloitsch
01/05/2023, 1:38 PMEXCEPTION 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
floitsch
01/05/2023, 1:38 PMfloitsch
01/05/2023, 1:38 PMRikke
01/05/2023, 1:39 PMfloitsch
01/05/2023, 1:39 PMjag version
?Rikke
01/05/2023, 1:39 PMVersion: v1.7.12
SDK version: v2.0.0-alpha.44
Build date: 2022-12-02T14:21:56Z
floitsch
01/05/2023, 1:40 PMfloitsch
01/05/2023, 1:40 PMRikke
01/05/2023, 1:40 PMfloitsch
01/05/2023, 1:40 PMsystem_message.toit
you need to update it.Rikke
01/05/2023, 1:41 PMsystem_message.toit
floitsch
01/05/2023, 1:41 PMfloitsch
01/05/2023, 1:41 PMjag decode
uses.floitsch
01/05/2023, 1:41 PMjag
it should automatically use a newer version.Rikke
01/05/2023, 2:36 PM******************************************************************************
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
******************************************************************************
The`signal_strength` call has changed since alpha 35, and now it actually asks for the SSID and not RSSI.
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
Changing the rssi := info[WIFI_SCAN_SSID_]
to rssi := info[WIFI_SCAN_RSSI_]
works 🙂 the wifi.toit is found under /lib/net/wifi.toit
floitsch
01/05/2023, 2:38 PMfloitsch
01/05/2023, 2:41 PMRikke
01/05/2023, 2:42 PMrikke-rp
floitsch
01/05/2023, 2:44 PMRikke
01/05/2023, 2:44 PM