Skip to content

Instantly share code, notes, and snippets.

View chaeplin's full-sized avatar

chaeplin chaeplin

View GitHub Profile
@chaeplin
chaeplin / esp8266_reset_01.log
Created September 20, 2015 17:44
esp8266 reset 01
Sep 21 02:07:54 esp8266-syslog Sending payload: {"NemoEmpty":34,"NemoEmptyStddev":0.92,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:07:54 esp8266-syslog Publish ok
Sep 21 02:08:05 esp8266-syslog Sending payload: {"NemoEmpty":35,"NemoEmptyStddev":0.70,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:08:05 esp8266-syslog Publish ok
Sep 21 02:08:15 esp8266-syslog Sending payload: {"NemoEmpty":35,"NemoEmptyStddev":1.00,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:08:15 esp8266-syslog Publish ok
Sep 21 02:08:20 esp8266-syslog Exception (28):
Sep 21 02:08:20 esp8266-syslog epc1=0x401039ab epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000
Sep 21 02:08:20 esp8266-syslog ctx: cont
Sep 21 02:08:20 esp8266-syslog sp: 3ffea270 end: 3ffea5f0 offset: 01a0
@chaeplin
chaeplin / esp8266_reset_02.log
Created September 25, 2015 05:51
esp8266_reset_02.log
Sep 25 14:46:42 esp8266-syslog Sending payload: {"NemoEmpty":9,"NemoEmptyStddev":0.54,"FreeHeap":29208,"RSSI":-49,"millis":71546392} length: 84
Sep 25 14:46:42 esp8266-syslog Publish ok
Sep 25 14:46:53 esp8266-syslog Sending payload: {"NemoEmpty":8,"NemoEmptyStddev":0.90,"FreeHeap":29208,"RSSI":-48,"millis":71556955} length: 84
Sep 25 14:46:53 esp8266-syslog Publish ok
Sep 25 14:46:58 esp8266-syslog Exception (4):
Sep 25 14:46:58 esp8266-syslog epc1=0x400046e4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000
Sep 25 14:46:58 esp8266-syslog ctx: cont
Sep 25 14:46:58 esp8266-syslog sp: 3ffea910 end: 3ffeac80 offset: 01a0
Sep 25 14:46:58 esp8266-syslog >>>stack>>>
Sep 25 14:46:58 esp8266-syslog 3ffeaab0: 00040000 00000001 53002200 7fffffff
@chaeplin
chaeplin / esp8266_reset_03.log
Created October 2, 2015 17:15
esp8266_reset_03.log
Oct 3 02:07:46 esp8266-02-syslog Sending payload: {"dustDensity":0.04,"FreeHeap":32560,"RSSI":-23,"millis":6202537} length: 66
Oct 3 02:07:46 esp8266-02-syslog : wr
Oct 3 02:07:46 esp8266-02-syslog : sent 89
Oct 3 02:07:46 esp8266-02-syslog : rch 54, 89
Oct 3 02:07:46 esp8266-02-syslog : ww
Oct 3 02:07:46 esp8266-02-syslog Publish ok
Oct 3 02:07:46 esp8266-02-syslog : c 1, 54, 143
Oct 3 02:07:46 esp8266-02-syslog home/check/checkhwmny => {"unihost":"2","unitot":"13"}
Oct 3 02:07:46 esp8266-02-syslog : c0 1, 89
Oct 3 02:07:46 esp8266-02-syslog esp8266/arduino/s03 => {"dustDensity":0.04,"FreeHeap":32560,"RSSI":-23,"millis":6202537}
@chaeplin
chaeplin / srcache.txt
Last active October 25, 2015 09:36
srcache.conf
# https://github.com/openresty/srcache-nginx-module
#
#srcache_store_max_size 5M;
#
map $cookie_ologin $skip_cookie {
default 0;
1 1;
}
#
#!/bin/sh
## you'll have to do a couple extra steps to get this running
## there are probably other ways to handle svncanboot, but this is from the linux forum
set -e
if
touch /etc/_testr_file
then
@chaeplin
chaeplin / ESP8266WiFi.ino
Last active November 17, 2015 18:48
ESP8266WiFi.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "/usr/local/src/ap_setting.h"
// Update these with values suitable for your network.
/*
char* topic = "/30/Status/MQTT";
char* subtopic = "inTopic";
@chaeplin
chaeplin / analogRead.ino
Created November 28, 2015 21:53
esp8266 analogRead
int sampleI;
int Number_of_Samples;
int sumI;
void setup()
{
Serial.begin(115200);
sampleI = 0;
sumI = 0;
Number_of_Samples = 1000;
@chaeplin
chaeplin / Serial.test.ino
Created December 1, 2015 19:27
Serial.test
int testpin1 = 5;
void setup() {
pinMode(testpin1, OUTPUT);
}
void loop() {
Serial.begin(115200);
digitalWrite(testpin1, LOW);
delay(2000);
@chaeplin
chaeplin / receiver.ino
Created December 14, 2015 03:17 — forked from rlogiacco/receiver.ino
nRF24 multiple transmitters
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
int senderId;
// Set up nRF24L01 radio on SPI bus plus pins 9 & 10
//Contacts from the radio to connect NRF24L01 pinamnam -> Arduino
@chaeplin
chaeplin / callback.ino
Last active January 29, 2016 14:50
callback.ino
void callback(char* topic, byte* payload, unsigned int length) {
String receivedtopic = topic;
String receivedpayload ;
for (int i = 0; i < length; i++) {
receivedpayload += (char)payload[i];
}