Author Topic: Email data from serial board  (Read 404 times)

electroman

  • Newbie
  • *
  • Posts: 17
Email data from serial board
« on: October 30, 2009, 03:45:43 AM »
Hi,

Just found what may be a small error in the Wiki.  I am emailing data from a micro, in this case a BS2 Stamp, using the Serial Web Services API described in the Wiki.  I initially cut and pasted the example code for the Basic Stamp and modified it with my email address but the only thing that happened was that the message appeared in the widget as text, but no email was received (or sent?).

I replaced  the { and } characters with [ and ] and everything then worked OK

It appears that about 170 characters can be sent per email

It would be nice if I could include some line feeds in the message but haven't found a way of doing it.

Cheers

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Email data from serial board
« Reply #1 on: October 30, 2009, 05:24:44 AM »
I have made the changes in the Wiki, nice catch.

To confirm, is this code sending an email properly?

Code: [Select]
SEROUT 8,16468,["[[[email|support@iobridge.com|My Temperature|My temperature in my room is ", SDEC tempF,".]]]"]
A new line is "\n" -- add that where you want a line break.
ioBridge Support
Community Team