Reduce the BLE output packet size to 20 bytes again
The newer u-Blox Nina B2 bluetooth module supports larger packets up to 244 bytes, but the older Telit/Stollman bluetooth module does not. Trying to send a packet larger than 20 bytes fails. For maximum compatibility, limit the output packet size to 20 bytes.
This commit is contained in:
parent
1c8cd096b5
commit
6c3bbb2cc7
@ -437,7 +437,7 @@ hw_ostc3_device_open (dc_device_t **out, dc_context_t *context, dc_iostream_t *i
|
||||
|
||||
// Create the packet stream.
|
||||
if (transport == DC_TRANSPORT_BLE) {
|
||||
status = dc_packet_open (&device->iostream, context, iostream, 244, 244);
|
||||
status = dc_packet_open (&device->iostream, context, iostream, 244, 20);
|
||||
if (status != DC_STATUS_SUCCESS) {
|
||||
ERROR (context, "Failed to create the packet stream.");
|
||||
goto error_free;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user