# API: Recommended C library

**URL:** <https://forums.digi.com/t/api-recommended-c-library/1190>\
**Category:** XBee - DigiMesh\
**Created:** [December 23, 2012, 8:39am UTC](https://forums.digi.com/t/api-recommended-c-library/1190 "2012-12-23T08:39:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcotrapanese](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@marcotrapanese](https://forums.digi.com/u/marcotrapanese)\
**Post date:** [December 23, 2012, 8:39am UTC](https://forums.digi.com/t/api-recommended-c-library/1190/1 "2012-12-23T08:39:18Z")

</div>

Hello to all.

I read several threads and did a google search.  
I found some C++ implementation of the Digi’s API but nothing in standard C - I mean to use with microcontrollers.

It’s not hard to write my own library (though VERY long due to the large set of options and variations) but I wonder if Digi provides or recommends an existing implementation.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dstanfor350](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@dstanfor350](https://forums.digi.com/u/dstanfor350)\
**Post date:** [December 26, 2012, 4:29pm UTC](https://forums.digi.com/t/api-recommended-c-library/1190/2 "2012-12-26T16:29:03Z")

</div>

This seems to be what you are looking for: [http://code.google.com/p/libxbee/](http://code.google.com/p/libxbee/)

Just Google “xbee library” to find more. Add “c” to restrict more to “c”.

---

<div class="post-metadata">

**Author:** ![marcotrapanese](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@marcotrapanese](https://forums.digi.com/u/marcotrapanese)\
**Post date:** [December 26, 2012, 5:23pm UTC](https://forums.digi.com/t/api-recommended-c-library/1190/3 "2012-12-26T17:23:17Z")

</div>

I’ve already downloaded that library but it’s not good for use with MCUs - it should be used in a windows/linux environment.

As said before I’ve already searched with google but I found nothing.  
So I implemented my own library.

---

<div class="post-metadata">

**Author:** ![asgm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/asgm/32/3688_2.png) [@asgm](https://forums.digi.com/u/asgm)\
**Post date:** [December 28, 2012, 7:05am UTC](https://forums.digi.com/t/api-recommended-c-library/1190/4 "2012-12-28T07:05:41Z")

</div>

Hi marcotrapanese

To the best of my knowledge, [http://code.google.com/p/libxbee/](http://code.google.com/p/libxbee/) is your only hope. I guess Digi don’t recommend any lib file to use with microcontrollers.

---

<div class="post-metadata">

**Author:** ![spastor](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@spastor](https://forums.digi.com/u/spastor)\
**Post date:** [January 9, 2013, 10:18am UTC](https://forums.digi.com/t/api-recommended-c-library/1190/5 "2013-01-09T10:18:29Z")

</div>

Hello marcotrapanese,

You may want to check this github project.

[https://github.com/digidotcom/xbee\_ansic\_library](https://github.com/digidotcom/xbee_ansic_library)

It’s a version of what Digi uses in Rabbit and Programmable XBee modules. It has several examples of use and is well documented. Best regards,
