Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
sol-mainloop-contiki.h File Reference
#include <contiki.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

void sol_mainloop_contiki_event_set (process_event_t ev, process_data_t data)
 Set the event and data that woke up the Soletta protothread, so this event can be internally handled. More...
 
bool sol_mainloop_contiki_iter (void)
 Do a single mainloop iteration. More...
 

Function Documentation

void sol_mainloop_contiki_event_set ( process_event_t  ev,
process_data_t  data 
)

Set the event and data that woke up the Soletta protothread, so this event can be internally handled.

Warning
Should only be used on Contiki implementation of SOL_MAIN_DEFAULT().
Parameters
evthe event that woke up the Soletta protothread, this can be a timer or a sensor event for example.
datathe data of the event
See Also
SOL_MAIN_DEFAULT()
bool sol_mainloop_contiki_iter ( void  )

Do a single mainloop iteration.

Warning
Should only be used on Contiki implementation of SOL_MAIN_DEFAULT().
See Also
SOL_MAIN_DEFAULT()