Skip to content

Instantly share code, notes, and snippets.

@NelisW
NelisW / VSCodeCPPSetup.md
Created June 26, 2018 19:48 — forked from BaReinhard/VSCodeCPPSetup.md
A Basic Setup for using VS Code with C++ 11 for CSIT Data Structures

Setting Up VS Code for C++ 11

This is for students who are running on a Non-Microsoft OS, or students who would rather use a lighter weight IDE

  1. First download VS Code and install it.

  2. Install a C++ extension in VS Code VS Code Extensions *The extension button is the square logo on the

@NelisW
NelisW / mqtt_discovery.cpp
Created July 12, 2024 08:49 — forked from Resinchem/mqtt_discovery.cpp
Sample Arduino code for publishing devices using Home Assistant MQTT Discovery. See the following for use case: https://youtu.be/VHiCtZqllU8 or https://resinchemtech.blogspot.com/2023/12/mqtt-auto-discovery.html
/* ===================================================================
SAMPLE CODE Segments for Home Assistant MQTT Discovery
This is NOT complete code but shows an example of generating a unique ID
for topic/entity publishing based on the device MAC address.
It also includes sample code for creating a Home Assistant device with four
entities via MQTT Discovery, as shown here:
Video: https://youtu.be/VHiCtZqllU8
Blog: https://resinchemtech.blogspot.com/2023/12/mqtt-auto-discovery.html
It is highly recommended that you include some sort of end-user accessible setting to