setPayloadSizeByFirmware

fun setPayloadSizeByFirmware(firmwareVersion: String)

Sets the maximum payload size based on the provided firmware version.

This method looks up the firmware version in the payloadSizeMap and sets the maxPayloadSize accordingly. If the firmware version is not found in the map, the default value of 140 bytes is used.

Parameters

firmwareVersion

The firmware version string to look up.