Pages: [1]   Go Down
Author Topic: client.print(txt,BYTE) no longer works in Arduino 1.0 [solved]  (Read 1057 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, 04:22:57 pm by JO3RI » Logged


Hamburg, Germany
Offline Offline
Sr. Member
****
Karma: 5
Posts: 291
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just use client.write() to get bytes. No special typedeclaring necessary.

markbee
Logged


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

Thanks man, that did the trick.
Logged


Pages: [1]   Go Up
Jump to: