Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winforms application not receiving messages from arduino #30

Open
vramanx opened this issue Sep 6, 2017 · 0 comments
Open

Winforms application not receiving messages from arduino #30

vramanx opened this issue Sep 6, 2017 · 0 comments

Comments

@vramanx
Copy link

vramanx commented Sep 6, 2017

I have a sample winforms application using CmdMessenger connecting at 115200 with DtrEnable set to true. This is running on windows 10 with Arduino getting connected on COM4. The code is based on the Datalogging example

I have the below code in Setup function in the ino file. The winforms application receives the first acknowledge message. But not the second one. Any clues?

void setup()
{
// Listen on serial connection for messages from the pc
Serial.begin(115200);

// Adds newline to every command
cmdMessenger.printLfCr();

// Attach my application's user-defined callback methods
attachCommandCallbacks();

// Send the status to the PC that says the Arduino has booted
cmdMessenger.sendCmd(kAcknowledge,"Arduino has started!");

// set some pin modes
pinMode(kBlinkLed, OUTPUT);
pinMode(....)

cmdMessenger.sendCmd(kAcknowledge,"Setup Completed");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant