link pb.h in proto folder so we dont need to externally install libs, use BlinkaConnect name instead of Adafruit IO

This commit is contained in:
brentru 2020-08-21 14:53:05 -04:00
parent 4384b47a9c
commit da44044b17
7 changed files with 17 additions and 21 deletions

View file

@ -1,11 +1,7 @@
# BlinkaConnect_Arduino
Arduino Library for BlinkaConnect web application.
# Installation
## Adding Hardware
[Hardware Specification for adding boards to BlinkaConnect](https://github.com/adafruit/BlinkaConnect_Boards)
To install the nano-pb Arduino dependencies, move the following files from [nanopb](https://github.com/nanopb/nanopb) into a new `Arduino/libraries/nano-pb` folder:
```
pb.h
```
Then, the contents of this repository can be installed normally.
Communication between this library and the MQTT broker uses protocol buffers for serialized data. The raw protocol buffers used by this project are located [here](https://github.com/adafruit/BlinkaConnect_ProtoBuf). This library contains compiled `.pb.h` and `.pb.c` protocol buffer messages generated by [nanopb](https://github.com/nanopb/nanopb).

View file

@ -404,7 +404,7 @@ void BlinkaConnect::connect() {
// subscribe
_mqtt->subscribe(_topic_description_sub);
BC_DEBUG_PRINT("Connecting to Adafruit IO.");
BC_DEBUG_PRINT("Connecting to BlinkaConnect.");
// Connect network interface
_connect();
@ -683,29 +683,29 @@ const __FlashStringHelper *BlinkaConnect::statusText() {
case BC_NET_DISCONNECTED:
return F("Network disconnected.");
case BC_DISCONNECTED:
return F("Disconnected from Adafruit IO.");
return F("Disconnected from BlinkaConnect.");
// FAILURE
case BC_NET_CONNECT_FAILED:
return F("Network connection failed.");
case BC_CONNECT_FAILED:
return F("Adafruit IO connection failed.");
return F("BlinkaConnect connection failed.");
case BC_FINGERPRINT_INVALID:
return F("Adafruit IO SSL fingerprint verification failed.");
return F("BlinkaConnect SSL fingerprint verification failed.");
case BC_AUTH_FAILED:
return F("Adafruit IO authentication failed.");
return F("BlinkaConnect authentication failed.");
// SUCCESS
case BC_NET_CONNECTED:
return F("Network connected.");
case BC_CONNECTED:
return F("Adafruit IO connected.");
return F("BlinkaConnect connected.");
case BC_CONNECTED_INSECURE:
return F("Adafruit IO connected. **THIS CONNECTION IS INSECURE** SSL/TLS "
return F("BlinkaConnect connected. **THIS CONNECTION IS INSECURE** SSL/TLS "
"not supported for this platform.");
case BC_FINGERPRINT_UNSUPPORTED:
return F("Adafruit IO connected over SSL/TLS. Fingerprint verification "
return F("BlinkaConnect connected over SSL/TLS. Fingerprint verification "
"unsupported.");
case BC_FINGERPRINT_VALID:
return F("Adafruit IO connected over SSL/TLS. Fingerprint valid.");
return F("BlinkaConnect connected over SSL/TLS. Fingerprint valid.");
default:
return F("Unknown status code");
}

View file

@ -3,7 +3,7 @@
#ifndef PB_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED
#define PB_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED
#include <pb.h>
#include <nanopb/pb.h>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.

View file

@ -3,7 +3,7 @@
#ifndef PB_LOCATION_V1_LOCATION_V1_LOCATION_PB_H_INCLUDED
#define PB_LOCATION_V1_LOCATION_V1_LOCATION_PB_H_INCLUDED
#include <pb.h>
#include <nanopb/pb.h>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.

View file

@ -3,7 +3,7 @@
#ifndef PB_PIN_V1_PROTO_PIN_V1_PIN_PB_H_INCLUDED
#define PB_PIN_V1_PROTO_PIN_V1_PIN_PB_H_INCLUDED
#include <pb.h>
#include <nanopb/pb.h>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.

View file

@ -3,7 +3,7 @@
#ifndef PB_SENSOR_V1_SENSOR_V1_SENSOR_PB_H_INCLUDED
#define PB_SENSOR_V1_SENSOR_V1_SENSOR_PB_H_INCLUDED
#include <pb.h>
#include <nanopb/pb.h>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.

View file

@ -3,7 +3,7 @@
#ifndef PB_SIGNAL_V1_SIGNAL_V1_SIGNAL_PB_H_INCLUDED
#define PB_SIGNAL_V1_SIGNAL_V1_SIGNAL_PB_H_INCLUDED
#include <pb.h>
#include <nanopb/pb.h>
#include "sensor.pb.h"
#include "pin.pb.h"
#include "location.pb.h"