##==================================================================
The Development of this repository move to OpenISDM/Lbeacon-zigbee
https://github.com/OpenISDM/Lbeacon-zigbee
===================================================================
The library we use fork from Attie's repository "libxbee3".
The Original repository is https://github.com/attie/libxbee3 This repository is for the use of Zigbee module(xbee S2) on Respberry pi.
The following is the manual of Zigbee(xbee Series 2): https://www.digi.com/resources/documentation/digidocs/PDFs/90000976.pdf
libxbee v3 is licensed using LGPLv3 from v3.0.5 onwards.
The OS on the Respberry pi is RASPBIAN STRETCH LITE 2017-11-29 version.
The official website of Raspberry Pi is https://www.raspberrypi.org
The download link of RASPBIAN STRETCH LITE(2017-11-29 version) is
http://vx2-downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-12-01/2017-11-29-raspbian-stretch-lite.zip
If you are building libxbee, then there are a number of options avaliable to you.
Initially you should run the following command:
$ make configureThis will retrieve a default config.mk that is suitable for your Respberry Pi.
You
should review this file and then run the following command:
$ make allAfter the build process has completed, you should find suitable files in ./lib.
E.g: for a Unix-like OS you can expect to find .so and .a files
for Windows you can expect to find a .dll file
It is highly recommended that you don't modify any of the build system.
To install libxbee simply type (you will require root permissions):
$ sudo make installCompile your applications, including xbee.h in the relevant source files.
Ensure you link with libxbee (e.g: using gcc -lxbee)
If you are compiling the object file directly into your executable instead
of making use of the library, you must include the following link flags.
These
flags are also necessary for newer versions of Ubuntu, and possibly others.
-lpthread -lrtTodo