Skip to content

Instantly share code, notes, and snippets.

View justind000's full-sized avatar

Justin Decker justind000

View GitHub Profile
@justind000
justind000 / Watson.h
Last active July 18, 2019 21:23
IoT Hydroponics - Watson
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
// your network information
const char *ssid = "";
const char *password = "";
#define Organization_ID "" // your organization
#define Device_Type "" // your registered device type
@justind000
justind000 / ThingsBoard.h
Last active November 13, 2019 17:30
IoT Pool Monitor
#include <WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
WiFiClient wifiClient;
PubSubClient client(wifiClient);
// your network information
const char *ssid = "";
const char *password = "";
#include <Arduino.h>
#include "ISE_pH.h"
#include <CayenneMQTTESP32.h>
ISE_pH pH;
// your network information
char ssid[] = "";
char wifiPassword[] = "";
@justind000
justind000 / main.rs
Last active February 28, 2019 15:27
extern crate ufire_iso_ec;
use ufire_iso_ec::*;
let mut ec = EcProbe::new("/dev/i2c-3", 0x3c);
let ms = ec.measure_ec();
@justind000
justind000 / main.cpp
Last active February 27, 2019 20:41
Isolated EC example use
#include "uFire_EC.h"
uFire_EC EC;
ec.measureEC();
@justind000
justind000 / main.py
Last active February 27, 2019 20:41
Isolated EC python example use
from uFire_EC import uFire_EC
ec = uFire_EC()
ec.measureEC()
@justind000
justind000 / main.cpp
Last active October 1, 2019 09:06
ISE C++ example use
#include <uFire_pH.h>
uFire_pH pH;
pH.measurepH();
@justind000
justind000 / main.rs
Last active September 4, 2019 09:45
ISE Rust use example
extern crate ufire_ise;
use ufire_ise::*;
let mut ph = ufire_ise::IseProbe::new("/dev/i2c-3", 0x3f).unwrap();
ph.measure_ph();
@justind000
justind000 / main.py
Last active October 1, 2019 09:06
ISE Python example use
from uFire_pH import uFire_pH
ph = uFire_pH()
ph.measurepH()
#include <nocan.h>
#include <ArduinoJson.h>
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10610
#include <uFire_EC_JSON.h>
#include <uFire_pH_JSON.h>
#include <uFire_ORP_JSON.h>
NocanChannelId tid;
uFire_EC_JSON ec;
uFire_pH_JSON ph;