Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Firmware for an environment sensor. 8266 / SCD30 / Protobuf / Websocket

Notifications You must be signed in to change notification settings

rjl-kingswood-monitor/wifi-environment-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kingswood Environment Monitor environment sensor firmware

This is the firmware for a sensor for measuring temperature, humidity, and CO2 an relaying it in a Protobuf message to a websocket.

Protobuf

To regenerate the schema, run this command:

mkdir -p lib/proto
python .pio/libdeps/nodemcuv2/Nanopb/generator/nanopb_generator.py -I proto -D lib/Proto proto/packet.proto

There is a compiler namespace DEFINE collision on atmelavr platforms with the UENUM type. As a workaround, insert the following in packet.pb.h:

/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.2-dev */

#ifndef PB_PACKET_PB_H_INCLUDED
#define PB_PACKET_PB_H_INCLUDED
#include <pb.h>

#ifdef UENUM
#undef UENUM
#endif

etc

About

Firmware for an environment sensor. 8266 / SCD30 / Protobuf / Websocket

Resources

Stars

Watchers

Forks

Packages

No packages published