Releases: MediaTek-Labs/Arduino-Add-On-for-LinkIt-SDK
Releases · MediaTek-Labs/Arduino-Add-On-for-LinkIt-SDK
Add LBLEPeripheral::disconnectAll
New method for LBLEPeripheral
to disconnect all connected central client devices.
MCS gamepad channel support & LBLE major bug fix
Breaking Changes
- Migrate from LinkIt SDK v4.2 to v4.3.
- You need to update bootloader and Wi-Fi/BLE firmware by choosing Burn Bootloader from Arduino IDE tool menu. Detailed instruction here.
LBLECentral::scan
now clears the scanned device list when re-starting a scan procedure. This is because most BLE devices change their BLE address overtime, so there is no use storing all the previously scanned results. If the user must keep the scan history, they need to backup the scan results before callingscan()
again.
New Features
- Support MCS GamePad Controller Channel. Check Examples > MCS > Gamepad for example. Thanks to @michaelchien1972 for contributing to this.
- Users can now update (or restore) on-board bootloader and Wi-Fi/BLE connectivity firmware by selecting Burn Bootloader from IDE menu.
Bug Fixes
- Add missing implementation
LBLEClient::disconnect
. - Fix an issue that may cause the board stop responding after multiple BLE scan -> connect loop.
- Fix #27: WiFiUdp::available() returns incorrect result after parsePacket()
- Fix #30: Servo::attach(pin, min, max) does not work
- Fix #36: Arduino SDK build issue under mingw (windows x86/x64) environment. (Thanks to contribution from @michaelchien1972)
Bug Fix for LBLE Library
- Add
LBLE::disconnect()
implementation - Add synchronization locks in LBLE internal event dispatcher
MCS Library Update
New features
- As requested in #21, Provide new method
setServerValue(value)
for all controller data channels. Developers may use this method to update the MCS/MCSLite server-side values. Once the value is successfully set, the channel becomes bothvalid()
andupdated()
.
Changes and fixes
MCS library
MCSGPSController
now have a new methodvalue()
which returns anMCSGPSValue
object that is a struct of latitude, longitude and altitude. The exisiting methods such aslatitude()
are left unchanged.MCSPWMController::value()
has changed:- It now returns a
MCSPWMValue
object instead of the duty cycle field. - A new method
dutyCycle()
is added to retrieve the field seperately.
- It now returns a
- All controller channels are now inherited from a
MCSControllerBase<T>
template class that provides a common implementat forvalue()
,setServerValue()
and_update()
logics. This reduces some redundant code implementations. Note that display channels are left unchanged.
Arduino IDE support
- Fix #17: Default USER LED is on
- Fix #18: There are compile warnings while compile the core lib
- Fix #20: Arduino IDE 1.8.2 : "Aggressively Cache Compiled Code" will cause compile error.
- Fix #22: Upload fails when the board support package installation path contains space character
- Fix #23: Request to add
clockCyclesPerMicrosecond
to BSP
Network Feature Updates
WiFiClient Re-Implementation with Blocking Sockets
Fixes #13 (A memory leak in the non-blocking call flow).
Dev Preview for TLS/SSL support
- Fix issue that fails to download bigger fragment length contents.
- Merge from master to fix MCS Float Channel upload issue.
Dev Preview for TLS/SSL support
Preview release for issue #8.
MCS and LBLE Enhancements
New features for MCS and LBLE library:
- MCS now supports MCSLite. which is currently in preview stage. Visit the preview introduction page (sorry, Chinese only) for binary download and documentation. To connect to MCSLite instead of MCS, use the
MCSLiteDevice
class. LBLE
library now adds two new methods:LBLEAdvertisementData::configAsEddystoneURL()
allows users to configure advertisements in Eddystone-URL format.LBLEPeripheralClass::advertiseAsBeacon
allows users to create a peripheral that is purely advertised as a device that cannot be connected - most beacons belongs to this category.
New Features
This release adds following new features:
- MCS library that helps connecting to MediaTek Cloud Sandbox
- LBLECentral and LBLEClient supports connecting to a remote BLE peripheral device, enumerating services and read/write characteristics.
- Improved firmware upload speed by updating to mt76x7-upload tool v1.4.0.