ccollins476ad opened a new pull request #479: Allow GATT services to be registered after startup URL: https://github.com/apache/mynewt-core/pull/479 Prior to this change, supported GATT services could only be registered once. This change allows the set of supported servces to be replaced "on the fly". /** * Resets the GATT server to its initial state. On success, this function * removes all supported services, characteristics, and descriptors. This * function requires that: * o No peers are connected, and * o No GAP operations are active (advertise, discover, or connect). * * @return 0 on success; * BLE_HS_EBUSY if the GATT server could not be * reset due to existing connections or active * GAP procedures. */ int ble_gatts_reset(void) /** * Makes all registered services available to peers. This function gets called * automatically by the NimBLE host on startup; manual calls are only necessary * for replacing the set of supported services with a new one. This function * requires that: * o No peers are connected, and * o No GAP operations are active (advertise, discover, or connect). * * @return 0 on success; * A BLE host core return code on unexpected * error. */ int ble_gatts_start(void) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services