# LMIC library basic documentation

**URL:** <https://www.thethingsnetwork.org/forum/t/lmic-library-basic-documentation/20716>\
**Category:** LMIC\
**Created:** [December 14, 2018, 7:49am UTC](https://www.thethingsnetwork.org/forum/t/lmic-library-basic-documentation/20716 "2018-12-14T07:49:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![basvaningen](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@basvaningen](https://www.thethingsnetwork.org/forum/u/basvaningen)\
**Post date:** [December 14, 2018, 7:49am UTC](https://www.thethingsnetwork.org/forum/t/lmic-library-basic-documentation/20716/1 "2018-12-14T07:49:36Z")

</div>

Hi there,

Is there some “simple” documentation available for the LMIC library. I found a PDF on Github but that’s not what im looking for. I’m just a PHP developer and starting in C, but where making progress 🙂  
What is see is that people strugling with the library where to put there own code in the sample’s. Normally you put your code in de void\_loop() section. But in all the samples i see it in the EV\_TXCOMPLETE of the select case statement.

What i’m looking for:  
Description of what the functions/procedures do.  
Like for example:

- os\_runloop\_once() or os\_runloop() what are the differences and when do you need to fire them.
- os\_setTimedCallback(&sendjob, os\_getTime()+sec2osticks(TX\_INTERVAL), do\_send) what does this exactly. I know i can schedule when the do\_send is fired.

What i’m trying to reach:  
I want to make one basic sketch with for example the following functions:  
LoraInit()  
LoraJoinAPB()  
LoraJoinOTAA()  
LoraSend()  
LoraReceive()  
LoraSleep()  
and on

I think the community will have there benefit from it. And surely the beginning C programmers 🙂

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/lmic-library-basic-documentation/20716)._
