This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bluetooth low energy Characteristics, a beginner's tutorial

I followed the steps mentioned in the Bluetooth low energy Characteristics, a beginner's tutorial, but at "if ((p_evt_write->handle == p_our_service->characteristic1_value_write_handler.value_handle))" I get a compiler error: Error[Pe154]: expression must have struct or union type. It seems that 'value_handle' is not part of characteristic1_value_write_handler? Any tips what I did wrong?

Parents Reply Children
  • Have you followed the tutorial and completed all the steps defined in the tutorial ? 
    The code you pointed to was from one of the customer, not from us. The definition of his ble_os_t struct is not provided, we don't have characteristic1_value_write_handler in our ble_os_t  in the tutorial. 
    I would suggest you to follow the tutorial, and then have a look at the ble_app_uart example in the SDK. It's a good place to start after completed the tutorial. 

Related