Author Topic: digiusb : Monitor and receive  (Read 3263 times)

bino

  • Newbie
  • *
  • Posts: 3
digiusb : Monitor and receive
« on: November 01, 2013, 09:10:06 pm »
Dear All.

I make a test with digiusb.

Here is the sketch

Quote
#include <DigiUSB.h>
#include <TinyWireM.h>


void setup()
{
  DigiUSB.begin();
}

void loop()
{
  DigiUSB.print("Hello World : ");
  DigiUSB.println(millis(),DEC);
  DigiUSB.delay(250);
}


Test using provided digiusb programs :
1. monitor : I think it work like expected
2. receive : I think it's not work like expected ... it always stop after several line.
attached is a screen shoots of it

I need kind of program that will stream any received char to stdout, since I will inject it to another
program.

Kindly please help me with this.

Sincerely
-bino-

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: digiusb : Monitor and receive
« Reply #1 on: November 02, 2013, 12:11:47 am »
receive prints the incoming data to stdout until there is no data left - so it will stop eventually when it catches up with the data you are sending

to do what you want you either need to run receive in a loop or edit the source code for it and recompile - removing the code that stops the loop when it doesn't find any mroe data - sources are included in the download.