Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: char problem on: August 25, 2013, 03:44:56 pm
I don't see any difference, same output for UTF-7 as for UTF-8
2  Using Arduino / Programming Questions / Re: char problem on: August 25, 2013, 03:29:00 pm
thanks for the explanation, but if the actual string information is correct then why am I not getting the correct base 64 output

instead of getting:
Code:
D0g8EQZrkXobtRAGaNilLiT99SNqyt55Fm5ZaIV2hA==

I'm getting:
Code:
D0g8EQZr4oCYehvCtRAGaMOYwqUuJMO9w7UjasOKw555Fm5ZaOKApnbigJ4=

You can check it yourself at: http://www.motobit.com/util/base64-decoder-encoder.asp?charset=utf-8&acharset=
3  Using Arduino / Programming Questions / Re: char problem on: August 25, 2013, 02:48:40 pm
Code:
char ch [] = "H<k‘zµhØ¥.$ýõ#jÊÞynYh…v„";
Serial.print("char: ");
Serial.println(ch); //gives me wrong string

char ch2[strlen(ch)];
base64_encode(ch2, ch, strlen(ch)); //messed up result
4  Using Arduino / Programming Questions / char problem on: August 25, 2013, 02:36:36 pm
When I try to put a string of exotic character in a char array like this:

Code:
H<k‘zµhØ¥.$ýõ#jÊÞynYh…v„

and if I just print this string on the serial monitor, I'm getting the following:

Code:
H<k‘zµhØ¥.$ýõ#jÊÞynYh…v„

why this change? Are certain characters not allowed? If not, how do I work with the base64 library because it only allows me to encode/decode chars.
5  Using Arduino / Programming Questions / Re: String to byte[] and vice versa on: August 23, 2013, 03:58:32 pm
Then how do I do the casting from byte[] to char[]?

edit:
char *array = (char*)byte_array;

is this correct?
6  Using Arduino / Programming Questions / Re: String to byte[] and vice versa on: August 23, 2013, 02:49:57 pm
I want to encrypt a string. But before doing that I need to represent it as an array of byte.
For the String to byte[] part, I got this.

Code:
String message = "Hello World";
byte plain[message.length()];
message.getBytes(plain, message.length());

But I don't know how to do it the other way around.
7  Using Arduino / Programming Questions / String to byte[] and vice versa on: August 23, 2013, 01:52:13 pm
Damn I feel such a retard. How difficult can this be?
8  Using Arduino / Networking, Protocols, and Devices / Re: message from arduino TCP server to client on: April 22, 2013, 12:36:27 pm
Problem fixed by upgrading the WiFi shield using this (http://www.dfrobot.com/community/how-to-upgrade-arduino-wifi-shield-firmware-on-windows.html#comment-9233) guide.
9  Using Arduino / Networking, Protocols, and Devices / Re: AtLibUsbDfu.dll not found when upgrading WiFi shield on: April 22, 2013, 12:34:17 pm
Problem solved. Follow this guide instead (http://www.dfrobot.com/community/how-to-upgrade-arduino-wifi-shield-firmware-on-windows.html#comment-9233), much clearer smiley
10  Using Arduino / Networking, Protocols, and Devices / AtLibUsbDfu.dll not found when upgrading WiFi shield on: April 20, 2013, 03:46:01 pm
I followed this guide (http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading) but when I try to download the HDG104 WiFi module firmware, I get this error:

'AtLibUsbDfu.dll not found '

I am using flip 3.4.7
11  Using Arduino / Networking, Protocols, and Devices / Re: message from arduino TCP server to client on: April 20, 2013, 02:30:17 pm
I did a workaround but why is it that my connection gets closed randomly?? I am sending packets every 2 seconds. I am using the wifi shield.
12  Using Arduino / Networking, Protocols, and Devices / message from arduino TCP server to client on: April 20, 2013, 12:58:04 pm
Is there a way to push a message from the arduino TCP server to a TCP client. I'm trying to send a heartbeat, but it keeps stacking the messages up until it receives a TCP packet from the client to send something back.
13  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield UDP Support on: March 26, 2013, 07:34:27 am
jfrmilner,

would you please give us some more details please, i'm really stuck on this
14  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield UDP Support on: March 19, 2013, 06:59:49 am
I would also like to see this working, could be veeeery useful.
15  Using Arduino / Networking, Protocols, and Devices / Re: Seeeduino v3.0 + WiFi shield? on: March 19, 2013, 04:24:52 am
I thought the resets were coupled?

Btw, shortcutting the IOREF pin to the 3.3V on the WiFi shield solved the problem. Cause the Seeeduino is actually a clone of the Arduino Duemilanove. I should've read the guide a bit more thoroughly. Thanks anyway  smiley-lol
Pages: [1] 2