Pages: [1]   Go Down
Author Topic: CmdMessenger - QUESTIONS  (Read 990 times)
0 Members and 1 Guest are viewing this topic.
uk
Offline Offline
Newbie
*
Karma: 0
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)

Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
// 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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24449
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I am having problem uploading it to me board.
The errors are compilation errors, not upload errors.
Logged

"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.

Pages: [1]   Go Up
Jump to: