Class: Toybox.Ant.BurstPayload
- Inherits:
-
Toybox.Lang.Object
Overview
A class containing Burst payload data.
The payload data is provided in the form of Ant.Message
objects. The default max size of a BurstPayload
is 8192 bytes, or 1024
Message objects. However, this can vary by device.
Instance Method Summary collapse
-
add(message as Lang.Array<Lang.Number> or Lang.ByteArray) as Void
Add bytes to the end of the burst data.
-
getSize() as Lang.Number
Return the number of bursts contained in the payload.
-
initialize()
Constructor.
Instance Method Details
add(message as Lang.Array<Lang.Number> or Lang.ByteArray) as Void
Add bytes to the end of the burst data.
Note:
ByteArray is supported with ConnectIQ 4.2.0 and later.
getSize() as Lang.Number
Return the number of bursts contained in the payload.
initialize()
Constructor