LOGIN
Steven Reubenstone
Mechanical Engineer & Collaborizm Mentor. Join our iOT Hackathon! (Project Leader)
 · New YorkU.S.
Edit
Delete
Share
Report
QUESTION
  ·  Mark as Answered

Questions (I am using these for learning purposes) Harsha Alva

  1. Can you explain what the checkMemState(); function does?

  2. Are you saying that the arduino automatically allocates memory to delimited strings…so this is why you transmit it via the delimited string to the arduino?

0 like 
Like
Share
Harsha Alva
Mechanical Engineer + Software Dev
 · MangaluruIndia
Edit
Delete
Share
Report

Hi Steven Reubenstone

  1. It checks free RAM and resets the Arduino if it goes below 300 bytes. Otherwise, the Arduino will hang, parsed output will be garbage and LCD output will be blank.

  2. No, the Arduino doesn’t allocate memory statically for delimited strings.
    I have second thoughts about using delimited strings.
    TODO: There is a library that handles JSON and manages memory at low-level. I’ll try that and compare with the present sketch
    DONE: Parsing JSON on Arduino is much easier and simpler than using delimited strings. 😃

0 like 
Leave a reply...
DISCOVER
CHAT
ALERTS
-2
DISCUSSIONS
-1
FEED