Change settings; Add more README

This commit is contained in:
schinken 2015-12-24 20:12:17 +01:00
parent 3982e01502
commit 20d0f3c4fc
3 changed files with 16 additions and 3 deletions

View file

@ -4,7 +4,6 @@
#include <SimpleTimer.h>
#include "settings.h"
#include "wifi.h"
WiFiClient wifiClient;
PubSubClient mqttClient;

View file

@ -4,3 +4,17 @@ Here's some code and schematic to connect your mightyohm.com geiger counter to t
![Schematic](https://raw.githubusercontent.com/b4ckspace/esp8266-geigercounter/master/schematic.png "How to connect")
## compile
To compile this code, just clone or download the master branch as a zip and ramp up your arduino library. For this code to work, you need the SimpleTimer-library (http://playground.arduino.cc/Code/SimpleTimer#Download) and the ESP8266 added to your Arduino-IDE as a board (https://github.com/esp8266/Arduino, see install instructions)
## settings
For the code to work, you need to adjust the settings in the settings.h file.
## license and credits
This code is under MIT license (Christopher Schirner <schinken@bamberg.ccc.de>)
The geiger counter is used at our hackerspace in bamberg (https://hackerspace-bamberg.de)

View file

@ -15,8 +15,8 @@
#define BAUD_GEIGERCOUNTER 9600
//const char* ssid = "yourSSID";
//const char* password = "----";
const char* ssid = "yourSSID";
const char* password = "----";
#define MQTT_TOPIC_CPM "sensor/radiation/cpm"
#define MQTT_TOPIC_USV "sensor/radiation/uSv"