[Edit] Help with android networking.
in
Android Processing
•
1 year ago
Hi all.
I am trying to read data from a particular port and IP with android processing.
Does anyone know how I would do this?
This is the same as using telnet on PC to look at a particular message and port.
Thanks.
[Old]
I have a server sending a constant stream of stuff onto a wifi network. (This happens to be a arduino wifi/project, the constant stream is just temporary until I get my head round this).
The message is constructed:
R, Value0, Value1, R, Value0, Value1, R....etc
I want to use this message on my android devise to do stuff, such as present some sensor information to the user.
The simple question is - How do I read this stream from my server in android processing with the OscP5 library?
My code(that is probably completely in the wrong direction):
In summary: i could do with some guidance into using oscP5 to read a message on the wifi/tcp.
Thanks for reading this post, it is people like you that make this community so brilliant to learn from.
Kind regards,
I am trying to read data from a particular port and IP with android processing.
Does anyone know how I would do this?
This is the same as using telnet on PC to look at a particular message and port.
Thanks.
[Old]
I have a server sending a constant stream of stuff onto a wifi network. (This happens to be a arduino wifi/project, the constant stream is just temporary until I get my head round this).
The message is constructed:
R, Value0, Value1, R, Value0, Value1, R....etc
I want to use this message on my android devise to do stuff, such as present some sensor information to the user.
The simple question is - How do I read this stream from my server in android processing with the OscP5 library?
My code(that is probably completely in the wrong direction):
- import oscP5.*;
- import netP5.*;
- OscP5 oscP5tcpServer;
- OscP5 oscP5tcpClient;
- NetAddress myServerAddress;
- void setup() {
- oscP5tcpClient = new OscP5(this, "192.168.0.20", 12000);}
- void draw() {
- background(0);
- println(String,theMsg); // < - This part
- }
In summary: i could do with some guidance into using oscP5 to read a message on the wifi/tcp.
Thanks for reading this post, it is people like you that make this community so brilliant to learn from.
Kind regards,
1