how to define dedicate address for constant in WICED SDK

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
wewu_1392881
Level 3
Level 3
First like received First like given Welcome!

i want to put constant parameter to special address just like in IAR development IDE, i can use #pragma xxxxx @Location

0 Likes
1 Solution
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

I refer you to a structure in hello_sensor app:

#pragma pack(1)

//host information for NVRAM

typedef PACKED struct

{

    // BD address of the bonded host

    BD_ADDR  bdaddr;

    // Current value of the client configuration descriptor

    UINT16  characteristic_client_configuration;

    // sensor configuration. number of times to blink when button is pushed.

    UINT8   number_of_blinks;

}  HOSTINFO;

View solution in original post

1 Reply
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

I refer you to a structure in hello_sensor app:

#pragma pack(1)

//host information for NVRAM

typedef PACKED struct

{

    // BD address of the bonded host

    BD_ADDR  bdaddr;

    // Current value of the client configuration descriptor

    UINT16  characteristic_client_configuration;

    // sensor configuration. number of times to blink when button is pushed.

    UINT8   number_of_blinks;

}  HOSTINFO;