ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
example_dirtviz.cpp File Reference
#include <Arduino.h>
#include <WiFi.h>
#include "dirtviz.hpp"

Go to the source code of this file.

Macros

#define SERIAL_BAUD   115200
 

Functions

void setup ()
 Initialization code run on startup.
 
void loop ()
 

Variables

const char ssid [] = "wifi-network-here"
 
const char pass [] = "wifi-password-here"
 
Dirtviz api ("ip address here")
 
const char data [] = "message-here"
 
const size_t data_len = 21
 

Macro Definition Documentation

◆ SERIAL_BAUD

#define SERIAL_BAUD   115200

example example_dirtviz.cpp

Example of using dirtviz library. Sends data to a specified endpoint.

Author
John Madden
Date
2023-11-30 Baud rate for serial interface

Definition at line 16 of file example_dirtviz.cpp.

Function Documentation

◆ loop()

◆ setup()

void setup ( )

Initialization code run on startup.

Definition at line 31 of file example_dirtviz.cpp.

References pass, and ssid.

Variable Documentation

◆ api

Dirtviz api("ip address here") ( "ip address here"  )

Referenced by loop().

◆ data

◆ data_len

◆ pass

const char pass[] = "wifi-password-here"

Definition at line 19 of file example_dirtviz.cpp.

Referenced by setup(), and UserConfigStart().

◆ ssid

const char ssid[] = "wifi-network-here"