Code: Select all
RTC_DATA_ATTR std::deque<int> _queue;
setup() {
// serial setup....
_queue.push_back(100);
Serial.println(_queue.size());
esp_sleep_enable_timer_wakeup(5 * uS_TO_S_FACTOR);
esp_deep_sleep_start();
}
Code: Select all
RTC_DATA_ATTR std::deque<int> _queue;
setup() {
// serial setup....
_queue.push_back(100);
Serial.println(_queue.size());
esp_sleep_enable_timer_wakeup(5 * uS_TO_S_FACTOR);
esp_deep_sleep_start();
}
Users browsing this forum: Bing [Bot], MicroController and 82 guests