Page 1 of 1

pointer to static struct gatts_profile_inst gl_profile

Posted: Fri Mar 16, 2018 8:04 pm
by ocnek1
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.