could this problem with my Code a Integer variable to convert in a String (strtemp.toCharArray(dhttemp,5);)
toCharArray is not a static Value?
In Arduinoforum i read over “malloc”
http://en.wikipedia.org/wiki/Malloc#Overview_of_functions
How about a correct solid convert Integervariable to a String in C++?
In your Reference Example is only a “Text” not with a variable.
Reiko
Von: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] Im Auftrag von Ian Craggs
Gesendet: Donnerstag, 2. April 2015 23:32
An: paho-dev@xxxxxxxxxxx
Betreff: Re: [paho-dev] Problem Arduino YUN continuous duty
Hi Reiko,
yep, that would be the problem, if running out of memory is actually the cause.
Ian
On 04/02/2015 10:14 PM, Reiko Nötzold wrote:
Hi Ian,
thanks, i will testing again with this value in console.
Is this the problem with Stack and Heap at the picture on the end of page?
https://learn.adafruit.com/memories-of-an-arduino/optimizing-sram
Reiko
Hi Reiko,
it could be a memory overflow.
I've used this library in the past to see if I'm running out of memory: http://playground.arduino.cc/code/AvailableMemory
Ian
On 04/02/2015 09:14 PM, Reiko Nötzold wrote:
Hi,
i'm looking for developer which have use Arduino YUN for durable usecases in continuous duty.
I haved installed mosquitto on YUN with the Paho MQTT-Library and its running fine.
But my first testing with QoS2 the Arduino stopped to publish messages after 1 day.
Next i tested with QoS0 and the Arduino stopped to publish after 9 days.
I have implement a console debugging and there is a YUN Bridge Connection and console
prints the Messagesstrings.
When i reload the sketch the messages running again and i need not a reboot of YUN.
It's a memory overflow?
I could need assisting for this problem.
Thanks.
Reiko
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto