arduino / ArduinoCore-mbed

346 stars 200 forks source link

Set preferred connection parameters #75

Closed Dorsel89 closed 3 years ago

Dorsel89 commented 4 years ago

Hey everyone,

with the change from ArduinoCore-nRF528x-mbedos to ArduinoCore-mbed we have some problems with the setPreferredConnectionParams() function.

If I understand this correctly the function moves from GAP (mbed 5) to GattServer (mbed >= 6.2.1). Unfortunately I dont see a way to change the connection parameter on mbed 6.0.0 which is currently used by ArduinoCore-mbed.

So my questions are:

Best regards

facchinm commented 4 years ago

Hi @Dorsel89 , during this week we are trying to merge in mainline mbed-os the portenta related changes (https://github.com/arduino/mbed-os/pulls). When this happens a full rebuild over 6.4.0 will be published and the core updated.

Since you are using the Nano33BLE which is already mainlined you can "simply" (if you are on Linux) rebuild libmbed using mbed-os-to-arduino script in the root of this repo (running ./mbed-os-to-arduino ARDUINO_NANO33BLE:ARDUINO_NANO33BLE will just work)

Dorsel89 commented 4 years ago

Hey @facchinm,

this sounds good! Im working on the phyphox-arduino library (https://github.com/Staacks/phyphox-arduino) which is made for educational projects. So I am quite happy if teachers use microcontrollers at all - using linux or a console in general is probably to much for some of them.

Best regards

Dorsel89 commented 3 years ago

Hey everyone,

Im still waiting for the mbed-os rebase. Can you give any timeline how long it will take to go to mbed-os 6.2.1 or higher?

Best regards

facchinm commented 3 years ago

PR tracking the rebuild https://github.com/arduino/ArduinoCore-mbed/pull/88 . Portenta changes were merged last Tuesday (https://github.com/ARMmbed/mbed-os/pull/13826) so we are ready to merge and release soon