CCS811 digital gas sensor and LINKIT example

In this article we will connect a CCS811 gas sensor to a Linkit One and we will create an example using the Arduino IDE to display the values via web page and also a version which displays values on a web page

CCS811 is a low-power digital gas sensor solution, which integrates a gas sensor solution for detecting low levels of VOCs typically found indoors, with a microcontroller unit (MCU) and an Analog-to-Digital converter to monitor the local environment and provide an indication of the indoor air quality via an equivalent CO2 or TVOC output over a standard I2C digital interface.

WIFI Example

There are 3 lines that will/may need changed for your Wifi details

#define WIFI_AP "wifi ssid here"
#define WIFI_PASSWORD "password here"
#define WIFI_AUTH LWIFI_WPA
The last one you can select from from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP according to your WiFi AP configuration