You are reading a single comment by @hansamann and its replies. Click here to read the full conversation.
  • ok, have to correct myself. for above code snipped I set the interval to 20 sec, but the fail timeout was still at 30 seconds. I changed that to a put reqwuest every 30 secs and fail timeout to 20 secs.

    It makes sense I guess and works nicely now:

    save()
    =undefined
    Erasing Flash.....................
    Programming 36000 Bytes...................................­....
    Checking...
    Done!
    Running onInit()...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":45,"light":64,"vref":3.28990­9638554216808614}
    -->
    INTERNAL ERROR: Timeout on SPI RX
    Looks like CC3000 has died again. Power cycling...
    ==> Closed.
    Timed out, disconnecting...
    ERROR: Unknown Timeout
    Complete, disconnecting...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":25,"light":64,"vref":3.28990­9638554216808614}
    soil_humidity value set to average, was: 25
    -->
    ==> Closed.
    Complete, disconnecting...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":25,"light":64,"vref":3.29211­3194909577877922}
    soil_humidity value set to average, was: 25
    -->
    ==> Closed.
    Complete, disconnecting...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":48,"light":63,"vref":3.29211­3194909577877922}
    INTERNAL ERROR: Timeout on SPI RX
    Looks like CC3000 has died again. Power cycling...
    Timed out, disconnecting...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":53,"light":63,"vref":3.29211­3194909577877922}
    INTERNAL ERROR: Timeout on SPI RX
    Looks like CC3000 has died again. Power cycling...
    Timed out, disconnecting...
    Connected.
    {"temperature":21,"air_humidity":34,"soi­l_humidity":67,"light":64,"vref":3.29211­3194909577877922}
    soil_humidity value set to average, was: 67
    -->
    ==> Closed.
    Complete, disconnecting...

    It still runs into a cc3000 issue quite often, but it keeps running :-) Will put the sensors back and will let it run over night.

About

Avatar for hansamann @hansamann started