Giter Club home page Giter Club logo

wh5029's Issues

ID err

192 : b: 972 484 4904 0 0 0 0 0
t: 1010101010100101100110000010111000000000111111110011000000000000000000000000101100011101

CRC: 6F
crc_low_bits: F
CRC 0x6F OK

bity: 152

Validace typu OK

bity: 0

Validace two complement OK
crc:
id:
ID nesedi! Koncim.

obcas prolozeno chybou:

192 : b: 972 484 4880 0 0 0 0 0
t: 1010101010100101100110000010111000000001000000000011000000000000000000000000101111010011

CRC: 5F
crc_low_bits: F
CRC 0x5F OK

bity: 152

Validace typu OK

bity: 1

Err validace two complement
Nesedi two complement! Koncim

Adding DHT = Exception

Hi,

first of all thanks for great code! I'm trying to add DHT sensor to RXB6 so I can have also "indoor" temperature and humidity :)

But when I add my function dhtcheck(); right below dprintln(CRC); I got time to time Expection.. but I have no idea why.. :-/ (it's enought to add delay(1000); right under CRC output and I get Expection every time.

My code looks like this:

  int WiFiStrength = 0;
  char celsiusTemp[7];
  char humidityTemp[7];
  WiFiStrength = WiFi.RSSI();
  float dhthumid = dht.readHumidity();
  float dhttemp = dht.readTemperature();

  if (isnan(dhthumid) || isnan(dhttemp)) {
    dprint(F("Failed to read from DHT sensor!"));
    strcpy(celsiusTemp, "Failed");
    strcpy(humidityTemp, "Failed");
  } else {

    float thcal = dht.computeHeatIndex(dhttemp, dhthumid, false);
    dtostrf(dhttemp, 2, 1, celsiusTemp);
    dtostrf(dhthumid, 2, 1, humidityTemp);

    dprint(F("Temperature: "));
    dprintln(celsiusTemp);
    dprint(F("Humidity: "));
    dprintln(humidityTemp);
    dprint(F("WiFi Strength: "));
    dprintln(WiFiStrength);
  }
}

Exception looks like this:

epc1=0x40204c38 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3ffffc30 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffdd0:  4010719c 00000030 0000001f ffffffff  
3ffffde0:  ffffffff 00000020 00000000 00000000  
3ffffdf0:  fff00fff 60009a00 60000200 00000022  
3ffffe00:  3fffc200 40107164 3fffc258 4000050c  
3ffffe10:  40004378 00000030 00000016 ffffffff  
3ffffe20:  60000200 00000008 00000000 80000000  
3ffffe30:  20000000 3fff1390 80000000 203fc060  
3ffffe40:  80000000 3fffc6fc 00000001 3fff1394  
3ffffe50:  00000294 003fc060 60000600 00000030  
3ffffe60:  40107200 3ffec920 3ffe9da4 40204c44  
3ffffe70:  40107200 00000020 00000022 401071ea  
3ffffe80:  ffffffff 00000020 4000050c 00000022  
3ffffe90:  3fffc200 40107164 3fffc258 00000022  
3ffffea0:  3fffc200 40107164 3fffc258 4000050c  
3ffffeb0:  40000f83 00000030 0000001e ffffffff  
3ffffec0:  40000f3d 00000023 00000000 3fffd9d0  
3ffffed0:  00000000 00000000 00000000 fffffffe  
3ffffee0:  ffffffff 3fffc6fc 00000001 3fffdab0  
3ffffef0:  00000000 3fffdad0 3ffef2a0 00000030  
3fffff00:  00000000 400042db 0000007d 60000600  
3fffff10:  40004b31 3fff1334 000002f4 003fc000  
3fffff20:  40105fe2 3ffee090 3ffed130 4010763c  
3fffff30:  4020c961 3ffed130 3ffee090 02e7f7ca  
3fffff40:  3fff1334 00001000 4020cdf6 00000008  
3fffff50:  00000000 00000000 4020cea3 3ffed1e4  
3fffff60:  3ffee090 00e85ba1 3ffee090 40201344  
3fffff70:  4021e579 3ffed1e4 3ffee090 02e7c92a  
3fffff80:  4021e5be 3fffdab0 00000000 3fffdcb0  
3fffff90:  3ffee0b0 3fffdad0 3ffef2a0 40205803  
3fffffa0:  40000f49 000181f7 3fffdab0 40000f49  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v3ffe8798
~ld
⸮

Any idea what it can be and why?

By the way.. I added to your code also calculation of dewpoint and feeltemperature, should I send you a pull request? :)

// J

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.