mirror of
https://repository.entgra.net/community/product-iots.git
synced 2025-09-16 23:32:19 +00:00
commented out the watch_dog library stuff
This commit is contained in:
parent
3e43767efe
commit
036bec9888
@ -59,7 +59,7 @@ void setup() {
|
|||||||
|
|
||||||
connectHttp();
|
connectHttp();
|
||||||
setupResource();
|
setupResource();
|
||||||
wdt_enable(WDTO_4S);
|
// wdt_enable(WDTO_4S);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -68,15 +68,15 @@ void loop() {
|
|||||||
|
|
||||||
protothread1(&pushThread, 1000);
|
protothread1(&pushThread, 1000);
|
||||||
|
|
||||||
listen();
|
// listen();
|
||||||
// wdt_reset();
|
// wdt_reset();
|
||||||
// Check connection
|
// Check connection
|
||||||
if( !cc3000.checkConnected() ){
|
// if( !cc3000.checkConnected() ){
|
||||||
while(1){
|
// while(1){
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
wdt_reset();
|
// wdt_reset();
|
||||||
drive();
|
drive();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ static int protothread1(struct pt *pt, int interval) {
|
|||||||
// batches all the required pin values together and pushes once
|
// batches all the required pin values together and pushes once
|
||||||
// Pushes data in 1 second interval
|
// Pushes data in 1 second interval
|
||||||
pushData();
|
pushData();
|
||||||
wdt_reset();
|
// wdt_reset();
|
||||||
} else {
|
} else {
|
||||||
pushClient.close();
|
pushClient.close();
|
||||||
cc3000.disconnect();
|
cc3000.disconnect();
|
||||||
|
|||||||
@ -59,7 +59,7 @@ void setup() {
|
|||||||
|
|
||||||
connectHttp();
|
connectHttp();
|
||||||
setupResource();
|
setupResource();
|
||||||
wdt_enable(WDTO_4S);
|
// wdt_enable(WDTO_4S);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -68,15 +68,15 @@ void loop() {
|
|||||||
|
|
||||||
protothread1(&pushThread, 1000);
|
protothread1(&pushThread, 1000);
|
||||||
|
|
||||||
listen();
|
// listen();
|
||||||
// wdt_reset();
|
// wdt_reset();
|
||||||
// Check connection
|
// Check connection
|
||||||
if( !cc3000.checkConnected() ){
|
// if( !cc3000.checkConnected() ){
|
||||||
while(1){
|
// while(1){
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
wdt_reset();
|
// wdt_reset();
|
||||||
drive();
|
drive();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ static int protothread1(struct pt *pt, int interval) {
|
|||||||
// batches all the required pin values together and pushes once
|
// batches all the required pin values together and pushes once
|
||||||
// Pushes data in 1 second interval
|
// Pushes data in 1 second interval
|
||||||
pushData();
|
pushData();
|
||||||
wdt_reset();
|
// wdt_reset();
|
||||||
} else {
|
} else {
|
||||||
pushClient.close();
|
pushClient.close();
|
||||||
cc3000.disconnect();
|
cc3000.disconnect();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user