1 Reply Latest reply on Sep 3, 2017 10:58 PM by BoonT_56

    how to define dedicate address for constant in WICED SDK

    user_515772846

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

        • 1. Re: how to define dedicate address for constant in WICED SDK
          BoonT_56

          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;

          1 of 1 people found this helpful