Is is possible to programmatically trigger _health.qo reporting? It contains the connected battery health (bat.qo).
Hi @bradspry,
I’ll do some checking, but I don’t think it’s possible to programmatically trigger _health.qo
reporting.
One thing you could do is use the Notecard’s card.voltage
request (card Requests - API Reference - Blues Wireless Developers), and send the value
you get to Notehub in a separate note at a regular interval.
TJ
1 Like
Thank you so much for this solution!
1 Like
CircuitPython/Micropython: Get the card voltage, write to note, and sync:
# Voltage reporting
voltage = {"req": "card.voltage"}
voltage_response = card.Transaction(voltage)
vreqs = {"req": "note.add"}
vreqs["file"] = "voltage.qo"
vreqs["sync"] = True
vreqs["body"] = voltage_response
rsp = card.Transaction(vreqs)
Note contents:
"file": "voltage.qo",
"body": {
"calibration": 0.1897,
"crc": "0012:069FF1F3",
"minutes": 32,
"mode": "usb",
"value": 5.1488
},