diff --git a/_h_i_d_keyboard_types_8h_source.html b/_h_i_d_keyboard_types_8h_source.html index b31495d..7f86c93 100644 --- a/_h_i_d_keyboard_types_8h_source.html +++ b/_h_i_d_keyboard_types_8h_source.html @@ -25,7 +25,7 @@
sizeof(<type>).
-sizeof(<type>).
+
|
+ +inline | +
Template to set value to the value of a char array using strnlen.
+| [in] | s | A reference to a char array. |
Only used for char array types to correctly determine length via strnlen.
+ +All notable changes to this project will be documented in this file.
+NimBLEClient connection state tracking.setValue with char inputs now calculates the data length correctly.NimBLEServer::sendServiceChangedIndication Sends the service changed indication to peers so they refresh their database.NimBLEScan user configuarable scan response timer added to prevent unreported devices on long duration scans.NimBLEClient Connection retry on connection establishment failure, retry count configurable by app, default 2.l2Cap Disconnect APINimBLEStream, NimBLEStreamClient, and NimBLEStreamServer classes and examples.MYNEWT_VAL_ macros instead of CONFIG_ macros where applicable.NimBLEClient::readValue call not returning when the instance was created with aNimBLEServer and reading a secured characteristic.NimBLEScan destructor potentially causing a crash.NimBLEBeacon::BeaconData std::vector<uint8_t> operator to allow it to be used as a parameter to NimBLEAdvertisementData::setManufacturerData.NimBLECharacteristic::onSubscribe value when indications are set.NimBLEClient::connect overload with NimBLEAdvertisedDevice parameter to resolve connection error due to NULL address.NimBLEClient::DiscoverAttributes.NimBLEDevice::setPower and NimBLEDevice::getPower now take an additional parameter NimBLETxPowerType to set/get the power level for different operations.CONFIG_NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER, if defined will remove the ":" delimiter from the BLE address string.NimBLEHIDDevice now allows for the same report ID in multiple input/output/feature reports.NimBLEHIDDevice::getOutputReport will now return the correct characteristic.-NimBLEScanCallbacks::onScanEnd, replaces the scanEnded callback passed toNimBLEScan::startand now takes aconst NimBLEScanResults&andint reasonparameter.-NimBLEScanCallbacks::onDiscovered, This is called immediately when a device is first scanned, before any scan response data is available and takes aconst NimBLEAdvertisedDevice*parameter. -NimBLEScan::stopwill no longer call theonScanEndcallback as the caller should know its been stopped when this is called. -NimBLEScan::clearDuplicateCachehas been removed as it was problematic and only for the esp32. Stop and start the scanner for the same effect. -NimBLEScanResults::getDevicemethods now returnconst NimBLEAdvertisedDevice*. -NimBLEScanResultsiterators are nowconst_iterator. -NimBLEAdvertisedDevice::hasRSSIremoved as redundant, RSSI is always available. -NimBLEAdvertisedDevice::getPayloadnow returnsconst std::vector<uint8_t>instead of a pointer to internal memory. -NimBLEAdvertisedDeviceTimestamp removed, if needed then the app should track the time from the callback. -NimBLECharacteristic::notifyno longer takes abool is_notificationparameter, insteadindicate()should be called to send indications. -NimBLECharacteristicCallbacks::onNotifyremoved as unnecessary, the library does not call notify without app input. -NimBLECharacteristicCallbacks::onStatusNo longer takes astatusparameter, refer to the return code for success/failure. -NimBLERemoteCharacteristic::getRemoteServicenow returns aconst NimBLERemoteService*instead of non-const. -NimBLERemoteCharacteristic::readUInt32Has been removed. -NimBLERemoteCharacteristic::readUInt16Has been removed. -NimBLERemoteCharacteristic::readUInt8Has been removed. -NimBLERemoteCharacteristic::readFloatHas been removed. -NimBLERemoteCharacteristic::registerForNotifyHas been removed. -NimBLERemoteService::getCharacteristicsnow returns aconst std::vector<NimBLERemoteCharacteristic*>&instead of non-conststd::vector<NimBLERemoteCharacteristic*>*. -NimBLERemoteService::getValuenow returnsNimBLEAttValueinstead ofstd::string. -NimBLEService::getCharacteristicsnow returns aconst std::vector<NimBLECharacteristic*>&instead of std::vector<NimBLECharacteristic *>. -NimBLEUUID::getNativemethod replaced withNimBLEUUID::getBasewhich returns a read-only pointer to the underlyingble_uuid_tstruct. -NimBLEUUID;msbFirstparameter has been removed from constructor, caller should reverse the data first or call the newreverseByteOrdermethod after. -NimBLEAddressconstructor; default value for thetypeparameter removed, caller should know the address type and specify it. -NimBLEAddress::getNativereplaced withNimBLEAddress::getBaseand now returns a pointer toconst ble_addr_tinstead of a pointer to the address value. -NimBLEAddress::equalsmethod andNimBLEAddress::== operatorwill now also test if the address types are the same. -NimBLEUtils::dumpGapEventfunction removed. -NimBLEUtils::buildHexDatareplaced withNimBLEUtils::dataToHexString, which returns astd::stringcontaining the hex string. -NimBLEEddystoneTLM::setTempnow takes anint16_tparameter instead of float to be friendly to devices without floating point support. -NimBLEEddystoneTLM::getTempnow returnsint16_tto work with devices that don't have floating point support. -NimBLEEddystoneTLM::setDatanow takes a reference to *NimBLEEddystoneTLM::BeaconDatainstead ofstd::string. -NimBLEEddystoneTLM::getDatanow returns a reference to *NimBLEEddystoneTLM::BeaconDatainstead ofstd::string. -NimBLEBeacon::setDatanow takesconst NimBLEBeacon::BeaconData&instead ofstd::string. -NimBLEBeacon::getDatanow returnsconst NimBLEBeacon::BeaconData&instead ofstd::string. -NimBLEHIDDevice::reportMaprenamed toNimBLEHIDDevice::getReportMap. -NimBLEHIDDevice::hidControlrenamed toNimBLEHIDDevice::getHidControl. -NimBLEHIDDevice::inputReportrenamed toNimBLEHIDDevice::getInputReport. -NimBLEHIDDevice::outputReportrenamed toNimBLEHIDDevice::getOutputReport. -NimBLEHIDDevice::featureReportrenamed toNimBLEHIDDevice::getFeatureReport. -NimBLEHIDDevice::protocolModerenamed toNimBLEHIDDevice::getProtocolMode. -NimBLEHIDDevice::bootOutputrenamed toNimBLEHIDDevice::getBootOutput. -NimBLEHIDDevice::pnprenamed toNimBLEHIDDevice::setPnp. -NimBLEHIDDevice::hidInforenamed toNimBLEHIDDevice::setHidInfo. -NimBLEHIDDevice::deviceInforenamed toNimBLEHIDDevice::getDeviceInfoService. -NimBLEHIDDevice::hidServicerenamed toNimBLEHIDDevice::getHidService. -NimBLEHIDDevice::batteryServicerenamed toNimBLEHIDDevice::getBatteryService`.NimBLEDevice::getPower and NimBLEDevice::getPowerLevel bug worked around for the esp32s3 and esp32c3.NimBLEAttValue cleanup and optimization.NimBLEDevice::setPowerLevel and NimBLEDevice::getPowerLevel which take and return the related esp_power_level* types.NimBLEClient::discoverAttributes now returns a bool value to indicate success/failure.NimBLEClient::getLastError : Gets the error code of the last function call that produces a return code from the stack.btInUse.NimBLECharacteristic::removeDescriptor: Dynamically remove a descriptor from a characteristic. Takes effect after all connections are closed and sends a service changed indication.NimBLECharacteristicCallbacks::onSubscribe Is now called after the connection is added to the vector.NimBLECharacteristic::getDescriptorByHandle: Return the BLE Descriptor for the given handle.NimBLEScan Now uses the controller duplicate filter.NimBLEAdvertisedDevice Has been refactored to store the complete advertisement payload and no longer parses the data from each advertisement. Instead the data will be parsed on-demand when the user application asks for specific data.NimBLEHIDDevice Characteristics now use encryption, this resolves an issue with communicating with devices requiring encryption for HID devices.NimBLEDevice::setOwnAddrType added to enable the use of random and random-resolvable addresses, by asukiaaaNimBLEScan When the scan ends the scan stopped flag is now set before calling the scan complete callback (if used) this allows the starting of a new scan from the callback function.NimBLEClient::connect would hang on the task block if no event arrived to unblock. A time limit has been added to timeout appropriately.NimBLEAddress constructor: NimBLEAddress() produces an address of 00:00:00:00:00:00 type 0.