Arduino xbee library for mac

41 views
Skip to first unread message

rian

unread,
Feb 23, 2012, 2:36:27 PM2/23/12
to xbee-api
hi ,

i have installed the xbee library and i have pasted it in the library
folder which is found in Arduino package contents


but when i run the examples i get this message



Series1_Rx.cpp:21:27: error: NewSoftSerial.h: No such file or
directory


can anyone help

Zakie Mashiah

unread,
Feb 23, 2012, 5:32:38 PM2/23/12
to xbee...@googlegroups.com
Which Arduino IDE version are you using?
NewSoftSerial library is available on the net... download it.
In v1.0 of the Arduino IDE there is no more NewSoftwareSerial only SoftwareSerial
Iv v0022 of the Arduino IDE (older one) you need the NewSoftwareSerial library.


--
You received this message because you are subscribed to the Google Groups "xbee-api" group.
To post to this group, send email to xbee...@googlegroups.com.
To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.




--

Zakie Mashiah

Voice:                     +972 9 771 0481

Mobile:                   +972 54 424 4461

Email:                     zmas...@gmail.com

IM:                           zakie_...@msn.com


rian

unread,
Feb 29, 2012, 11:39:56 PM2/29/12
to xbee-api
hi thanks for the reply i got that solved .

i have another problem would appreciate your help .
am trying to read data from my receiver using xbee could you tell me
how to get sample ??


void getSample(){

if ( xbee.getResponse().isAvailable())
// Serial.println("GET SAMPLE CHECKPOINT");
// Serial.println("Searching Packet");
{
if(xbee.getResponse().getApiId() == RX_16_RESPONSE){
xbee.getResponse().getRx16Response(ioSample);
{
sampleValue = getRx16Response(ioSample);

Serial.println();
// Serial.println("Recieved New Packet");



this is my code but it doesnt seem to work
i get this error msg



XBEE_SERIAL_READ.cpp: In function 'void getSample()':
XBEE_SERIAL_READ:76: error: 'getRx16Response' was not declared in this
scope
XBEE_SERIAL_READ:84: error: expected `}' at end of input
> Email:                     zmash...@gmail.com
>
> IM:                           zakie_mash...@msn.com

rian

unread,
Feb 29, 2012, 11:42:08 PM2/29/12
to xbee-api
this is solved

i had to change #include <NewSoftSerial.h>

to

#include <SoftwareSerial.h>

in order to make it work .
Reply all
Reply to author
Forward
0 new messages