![]() ![]() All other functions such as toString are not affected as the endian change is made within them.Ĭreating a BLEServer instance is the same as original, no changes required. This is due to the way the NimBLE stack expects addresses to be presented to it. In this library the address bytes are stored in reverse order from the original library. Default is (0) Public static address.įor example BLEAddress addr(11:22:33:44:55:66, 1) will create the address object with an address type of: 1 (Random).Īs this parameter is optional no changes to existing code are needed, it is mentioned here for information.īLEAddress::getNative ( NimBLEAddress::getNative) returns a uint8_t pointer to the native address byte array. For example BLEDevice is now NimBLEDevice and BLEServer is now NimBLEServer etc.įor convenience definitions have been added to allow applications to use either name for all classes this means no class names need to be changed in existing code and makes migrating easier.īLEAddress ( NimBLEAddress) When constructing an address the constructor now takes an *(optional)* uint8_t type parameter to specify the address type. These macros are used the same way as the ESP_LOGx macros.Ĭlass names remain the same as the original with the addition of a "Nim" prefix. ![]() (Mainly for Arduino) You may choose to include NimBLELog.h in your application if you want to use the NIMBLE_LOGx macros for debugging. The changes listed here are only the required changes that must be made, and a short overview of options for migrating existing applications.įor more information on the improvements and additions please refer to the class documentation and Improvements and updatesĪll classes are accessible by including NimBLEDevice.h in your application, no further headers need to be included. This guide describes the required changes to existing projects migrating from the original bluedroid API to NimBLE. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |