Show Posts
Pages: 1 ... 62 63 [64] 65 66 ... 152
946  Using Arduino / Storage / Re: string format in SD card library on: November 20, 2013, 04:57:40 am
Could do this:

Code:
File.write( &datasensor[0], datasensor.length() );
947  Using Arduino / Programming Questions / Re: Operator overloading, help required on: November 20, 2013, 12:37:17 am
This should work. IPAddress has an overload for [], it returns a reference so it can be exploited by gaining a pointer to the start of the (IP) data block in IPAddress.

Code:
memcpy( h_ip, &ip[ 0 ], 4 );
948  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 19, 2013, 09:23:49 pm
Cheers, I'll keep it handy. Still a long way off from having a working platform yet.
949  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 19, 2013, 08:50:21 pm
Nice explanation, I'm quite interested as I'm building a server which will have to respond to multiple connections.

One hurdle I'm attempting is using HTTP/1.1, even though as you saw, it requires more overhead ( content-length and others ), it has some nice features. The major advantage of 1.1 is persistent connections and only requiring one socket per client, leaving other sockets free for other clients. Compared to the traditional 'each request has its own connection'.

Check this page out: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html
950  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 19, 2013, 08:09:14 pm
I saw your post about multiple sockets active, is it something to do with that?
I tried multiple connections but it seems to be doing only one for now.
951  Community / Website and Forum / Re: Where to change signature? on: November 18, 2013, 05:48:23 am
Follow this: it s a shortcut to your profile ( must be logged into your account ): http://forum.arduino.cc/index.php?action=profile;u=116026;sa=forumProfile

EDIT: seems you're all sorted anyway smiley
952  Using Arduino / Programming Questions / Re: Moving Functions to External Libraries on: November 17, 2013, 05:34:12 am
Liudr,

An ampersand on the variable used to call the function returns the pointer to it (pixels). The object will pass by reference fine.

Code:
void display_test(Adafruit_NeoPixel & pixels);
display_test(pixels);

Or

Code:
void display_test(Adafruit_NeoPixel *pixels);
display_test( &pixels );
953  Using Arduino / Project Guidance / Re: Can I use pin 4 and 10 on WiFi Shield? on: November 17, 2013, 03:02:54 am
Have a look at shift registers for more outputs ( like 74hc595 ), or you can get port expanders that can provide bi-directional pins.

No you cannot use the SS, otherwise you could end up clocking bad data to the device it controls. If you work around that ( power it down/disconnect MOSI & MISO ) then maybe you can, but that would require additional pins anyway.

You can use analog pins as digital pins if you aren't already.
954  Using Arduino / Programming Questions / Re: Updating variable value permanently on: November 16, 2013, 07:28:51 am
The only place you use 'keyA' is in:

Code:
XbeeSerial.println(keyA);
Copy the data to it in the 'void process_data (char * data)' function maybe, or byte-by-byte when you copy it into the static buffer.

Is the Xbee receiving the correct data?
955  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 16, 2013, 07:15:22 am
Yeah, sorry... I tried sending it a stupidly long url, but it was fine once I clicked stop.

Unless someone can find a vulnerability in the w5100 system, I don't think hacks will be a problem until you introduce things that give ambiguity in definition, like regular expressions processing the same data used in systems that give completely different meaning to a strings contents, i.e mysql<->(php|html)
956  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 16, 2013, 06:19:41 am
There are only 4 sockets.

But are you only using one?
Or are the next three requests effectively queued?
957  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 16, 2013, 06:14:23 am
Yes that is the text, just had a quick re-check, but there are also background images. Maybe someone else stole your connection.
958  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 16, 2013, 05:49:20 am
You mentioned in your initial post that: "It is exposed to the internet, and appears to be fending off most hack attempts", was there anything that did cause undesired behavior?
959  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 16, 2013, 05:28:58 am
What are your plans for the server now, are you looking to handle multiple clients?
960  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield server test (new code Uno ok) on: November 14, 2013, 09:33:22 am
Quote
Thank you, pYro_65. A very impressive test!  smiley
No worries, I'm attempting a similar project so it was beneficial to see what others have done.
Pages: 1 ... 62 63 [64] 65 66 ... 152