Go Down

Topic: how to akes a HTTP connection to the server on yun? (Read 675 times) previous topic - next topic

zixzixzix

wifishiled:
client.connect(server, 80);

but how to do it on yun?

PCWorxLA


wifishiled:
client.connect(server, 80);

but how to do it on yun?
You don't. There is no http server on the Atmel/sketch part of the Yun, the WiFi/Ethernet is only available on the MIPS/Linin (Linux) part of the Yun.

Ralf

zixzixzix

I know that.
But I do not know how to do it in Linux.

PCWorxLA


I know that.
But I do not know how to do it in Linux.

Well, what programming language/software are you using? What server are you trying to use? From where?

I understand that you aren't likely a native English speaker (neither am I) but you need to be a bit more detailed in your description in that case if you think you do not find the right words...

Ralf

zixzixzix

#4
Mar 04, 2014, 03:57 am Last Edit: Mar 04, 2014, 04:43 am by zixzixzix Reason: 1
server?tcp.lewei50.com post?9960
JSON
{

   "method": "update",

   "gatewayNo": "",

   "userkey": "userkey"

}&^!


I am sorry for my English.
I just want to sent JSON to server.
So that I can keep a TCP connect.
Could i use 'curl' to do that?
or i should use python?

Go Up