Macca 04/07/2023 02:55 AMUsing the code below I get the error report, but if I comment out 'Debug Message:' so the debug message becomes part of report: it doesn't error.
Start code
transport := mqtt.TcpTransport net.open --host=HOST --port=PORT
client := mqtt.FullClient --transport=transport
options := mqtt.SessionOptions --client_id=CLIENT_ID
unsubscribed_latch := monitor.Latch
// ------------------------------------------------------------------
report:
Temp /string := ""
temperatures.do: Temp = it //client.publish "$TOPIC_PREFIX/temps" it.to_byte_array --qos=1
DS18B20_Ids.do:client.publish "$TOPIC_PREFIX/" + it Temp.to_byte_array --qos=1
// ------------------------------------------------------------------
Debug Message:
client.publish "$TOPIC_PREFIX/Debug" Message.to_byte_array
// ------------------------------------------------------------------
main:
task:: MQTT
Debug "Started"
Decoding by jag
, device has version <2.0.0-alpha.69>
**
Class 'Null_' does not have any method 'pending_count'.
0: FullClient.publish.<block> <pkg:mqtt>/fullclient.toit:964:43
1: Signal.wait.<block> <sdk>/monitor.toit:153:17
2: Monitor.locked.<block> <sdk>/core/monitorimpl.toit:123:12
3: Monitor.locked_ <sdk>/core/monitorimpl.toit:95:3
4: Signal.wait <sdk>/monitor.toit:152:3
5: FullClient.publish <pkg:mqtt>/full_client.toit:964:28
6: Debug HWS_Monitor.toit:48:10
7: main HWS_Monitor.toit:54:3
**(edited)