The goal of this software was to allow me to plug into any Particle, including Gen 3, that has previously been setup and print out as much information about the device as possible. Hopefully at some point there will be API’s to print out more mesh information.
Comments welcome. Here is the link:
There are some more defines that indicate high-level features. For example, you can use Wiring_WiFi instead of having to list all of the platforms with Wi-Fi.
This file has been truncated.
* This header file maps platform ID to compile-time switches for the Wiring API.
// This is my code (mdma), but on second thoughts I feel this should be driven bottom up for
// components of the platform. (I.e. platform defines comes from the HAL)
#if PLATFORM_ID==0 || PLATFORM_ID==2 // core / core hd
#define Wiring_WiFi 1
#define Wiring_IPv6 0
#define Wiring_Serial2 1