From 0887b95bb97be84d2f16f17af97188d8125f9f85 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 1 Apr 2017 22:34:44 +0200 Subject: [PATCH] nrf5/modules/ubluepy: Expose ubluepy constant objects as externs in modubluepy.h to be able to get access to the local dict tables in order to do a reverse lookup on value to resolve QSTR from external modules in c. --- nrf5/modules/ubluepy/modubluepy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nrf5/modules/ubluepy/modubluepy.h b/nrf5/modules/ubluepy/modubluepy.h index 60fb49b993..b98d39f99b 100644 --- a/nrf5/modules/ubluepy/modubluepy.h +++ b/nrf5/modules/ubluepy/modubluepy.h @@ -79,6 +79,8 @@ extern const mp_obj_type_t ubluepy_characteristic_type; extern const mp_obj_type_t ubluepy_peripheral_type; extern const mp_obj_type_t ubluepy_scanner_type; extern const mp_obj_type_t ubluepy_scan_entry_type; +extern const mp_obj_type_t ubluepy_constants_type; +extern const mp_obj_type_t ubluepy_constants_ad_types_type; typedef enum { UBLUEPY_UUID_16_BIT = 1,