Skip to content

Instantly share code, notes, and snippets.

@lucabuka
lucabuka / .ycm_extra_conf.py
Created December 27, 2016 23:10
YouCompleteMe "ycm_extra_conf.py" for Platformio based projects - Platformio Core / VIM / Linux
"""
YouCompleteMe "ycm_extra_conf.py" for Platformio based projects.
The script calls [platformio -v run -t idedata] and process the output
to fill list with the SAME SET OF FLAGS used by platformio for the
project (compiler flags, Include dirs, compiler DEFINES, etc)
Tested on the following development environment:
- Linux (LMDE 2)
- PlatformIO, version 3.3.0a1
@lucabuka
lucabuka / gist:4601e0fa137f7b6873c47d220f82b23f
Created January 14, 2018 18:56
Test program to check WIFI CLOSE + RECONNECT on DOIT ESP32 DEVKIT V1
/**
* @file esp32_reconnect_demo.ino
* @brief Test program to check WIFI CLOSE + RECONNECT on DOIT ESP32 DEVKIT V1
*
* The program connect to the WiFI network and than to a NTP server
* It prints in the loop "getEpochTime()" response from NTP server.
* If the WiFI connection is lost, it reconnects.
* After printing 15 times "getEpochTime()", it DESCONNECT WiFi
* to test reconnect capabilities.
*