Jan 4, 2021 at 8:37pm Jan 4, 2021 at 8:37pm UTC
Does utils.h #include platforms_ble.h?
In what you posted, platforms_ble.h is not included, so neither ESP_BLE nor AVR_BLE is defined, so neither m_svce nor m_dev is declared.
Jan 5, 2021 at 2:44pm Jan 5, 2021 at 2:44pm UTC
I should have added that - yes, utils.h does import the file.
Jan 5, 2021 at 3:15pm Jan 5, 2021 at 3:15pm UTC
Shouldn't it be
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifdef AVR_BLE
void CBLEController:: setup(uint8_t rx, uint8_t tx, uint16_t baud)
{
// ...
}
#else
void CBLEController::setup(std::string name, std::string chUUID, std::string svUUID)
{
// ...
}
#endif
Last edited on Jan 5, 2021 at 3:17pm Jan 5, 2021 at 3:17pm UTC
Jan 5, 2021 at 3:49pm Jan 5, 2021 at 3:49pm UTC
Ah I feel silly now. It was just staring me in the face!
Thanks for the answer, it's working now.