Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bridge YunClient issue with large inputs #1753

Closed
Labels
@ffissore

Description

Load the following sketch

#include <YunClient.h>
YunClient client;
IPAddress server(192,168,0,10); //change this to match your computer IP address
void setup() {
 Serial.begin(9600); 
 Bridge.begin();
 while (!Serial);
 Serial.print("Connecting...");
 if (client.connect(server, 5555)){
 Serial.println("Done!");
 } else {
 Serial.println("Fail");
 while (1);
 }
}
void loop() {
 if (client.available() > 0){
 Serial.write(client.read());
 } 
}

and start netcat on a your computer with nc -kl 5555
Then repeatedly past the following text

$PSSH,DSS,192117,0,876,,5*6D
$PSSR,QST,ALL*15
$PSSH,STA,ALL,ON,BOTH,LOW,50,CONTINUOUS,10,40,MANUAL,50,1000x512,NONE,0,LEFT,78,91,95,95,95,95,95,95,RIGHT,74,91,98,98,98,99,99,99,0.0*68

After a couple of attempts, the Serial Monitor will start printing garbage.
Report back at http://forum.arduino.cc/index.php?topic=196091.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /