Go Down

Topic: CmdMessenger - QUESTIONS (Read 1 time) previous topic - next topic

rdf107

Hi,

Last time I used Arduino my to create communications between message based programs and Arduino I used SimpleMessageSystem, I now see it is CmdMessenger. I am having problem uploading it to me board.

Details:
    -  My operating system is OS X 10.7.4
    - The location of the CmdMessengerExample file is :  /Documents/Arduino/hardware/libraries/CmdMessenger/CmdMessengerExample/CmdMessengerExample.pde
    - Once verifying the code I get this following error:
Quote

CmdMessengerExample.pde:-1: error: variable or field 'attach_callbacks' declared void
CmdMessengerExample.pde:-1: error: 'messengerCallbackFunction' was not declared in this scope
CmdMessengerExample.pde:-1: error: 'callbacks' was not declared in this scope
CmdMessengerExample.pde:-1: error: 'CmdMessenger' does not name a type
CmdMessengerExample.pde:-1: error: 'messengerCallbackFunction' does not name a type
CmdMessengerExample.cpp: In function 'void bens_msg()':
CmdMessengerExample.pde:-1: error: 'cmdMessenger' was not declared in this scope
CmdMessengerExample.cpp: In function 'void jerrys_base64_data()':
CmdMessengerExample.pde:-1: error: 'cmdMessenger' was not declared in this scope
CmdMessengerExample.pde:-1: error: 'base64_decode' was not declared in this scope
CmdMessengerExample.pde:-1: error: 'base64_encode' was not declared in this scope
CmdMessengerExample.cpp: In function 'void arduino_ready()':
CmdMessengerExample.pde:-1: error: 'cmdMessenger' was not declared in this scope
CmdMessengerExample.cpp: In function 'void unknownCmd()':
CmdMessengerExample.pde:-1: error: 'cmdMessenger' was not declared in this scope
CmdMessengerExample.cpp: At global scope:
CmdMessengerExample.pde:-1: error: variable or field 'attach_callbacks' declared void
CmdMessengerExample.pde:-1: error: 'messengerCallbackFunction' was not declared in this scope
CmdMessengerExample.pde:-1: error: 'callbacks' was not declared in this scope


Solution?

Other questions that I had regarding this:
- Do I have to download the SMS code, and well as Messenger before  CmdMessenger (this seems very silly but may be obvious)


dxw00d

Have you downloaded the additional libraries listed in the example sketch?

Code: [Select]
// Download these into your Sketches/libraries/ folder...

// CmdMessenger library available from https://github.com/dreamcat4/cmdmessenger
#include <CmdMessenger.h>

// Base64 library available from https://github.com/adamvr/arduino-base64
#include <Base64.h>

// Streaming4 library available from http://arduiniana.org/libraries/streaming/
#include <Streaming.h>


Quote
/Documents/Arduino/hardware/libraries/CmdMessenger/CmdMessengerExample/CmdMessengerExample.pde


That is the location for the IDE distribution standard libraries. Third party libraries should be stored in the libraries sub-directory of your sketchbook directory.

AWOL

Quote
I am having problem uploading it to me board.

The errors are compilation errors, not upload errors.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up