Advertising operation missing

2posts / 0 new
Last post
paulb231
Offline
Last seen:9 months 4 days ago
加入:2016-08-31 14:53
Advertising operation missing

In the tutorial 01 there is the following:

static const struct advertise_configuration user_undirected_advertise_conf ={
/// Advertise operation type.
.advertise_operation=ADV_NON_CONN,

However advertise_operation is not in the advertise_configuration
neither is intv

defined in sdk/app_modules/app_user_config.h
SDK is 5.04

Device:
MT_dialog
Offline
Last seen:1 month 11 hours ago
工作人员
加入:2015-06-08 11:34
Hi paulb231,

Hi paulb231,

Thats because the tutorial is based on the 5.0.3 SDK as it is mentioned on the 3rd page of the tutorial. You can either check the 5.0.3 SDK or the user_adv_conf structure on the 5.0.4 SDK which is the equivalent structure with the previous one (but still the .advertise_operation isn't configurable from this struct and you will have to create a custom message to create non connectable advertising messaged) regarding the intv you can set the intervals from intv_min and intv_max.

Thanks MT_dialog