Pages: [1]   Go Down
Author Topic: client.print(txt,BYTE) no longer works in Arduino 1.0 [SOLVED]  (Read 557 times)
0 Members and 1 Guest are viewing this topic.
Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 386
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been using EERPOM to save text. I did this by storing each letter (by using the according dec ASCII number) to an certain address and this worked very good. But now in Arduino 1.0, client.print(x,BYTE) no longer works. So when I want to show my text in a webpage I get numbers (DEC) instead of letters.

Now how can I convert the bytes stored in EEPROM back to letters, when I want to show them on LCD, screen, serial screen?

Like I said, in arduino 0.22 you could just use print(x,BYTE) or client.print(x,BYTE)

« Last Edit: December 06, 2011, 06:22:24 am by JO3RI » Logged


Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 386
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, found a work around. When include the tv-out library, I can still use client.print(x, BYTE). Probably not the right way to do it.  smiley-confuse
Logged


SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6378
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OfficiAl solution should be Client.write(x)

Logged

Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 386
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

All right, that's it, now i'm using
Code:
Client.write(x)
for displaying letters and
Code:
Client.print(x)
for displaying data

Thanks
« Last Edit: December 06, 2011, 06:23:19 am by JO3RI » Logged


Pages: [1]   Go Up
Jump to: