pointer to static struct gatts_profile_inst gl_profile

ocnek1
Posts: 3
Joined: Fri Mar 16, 2018 5:08 pm

pointer to static struct gatts_profile_inst gl_profile

Postby ocnek1 » Fri Mar 16, 2018 8:04 pm

Hello,

I would like to use some values of gl_profile in another task that is in another file. How do I go about making a global pointer to this struct?

Code: Select all

/* One gatt-based profile one app_id and one gatts_if, this array will store the gatts_if returned by ESP_GATTS_REG_EVT */
static struct gatts_profile_inst gl_profile = {
         .gatts_if = ESP_GATT_IF_NONE,       /* Not get the gatt_if, so initial is ESP_GATT_IF_NONE */
};


Thanks,
oc.

Who is online

Users browsing this forum: Bing [Bot] and 94 guests