chirpsdk / io.chirp.chirpsdk / ChirpSDK / getDurationForPayloadLength

getDurationForPayloadLength

fun getDurationForPayloadLength(payloadLength: Int): Float

Get the duration in seconds for a specified payload length.

Return
Float duration in seconds. If config is not set it returns 0.0f If payloadLength > maxPayloadLength it returns -2.0f If payloadLength <= 0 it returns -1.0f