SingingCat 0
application
Functions | Variables
userhooks.c File Reference

START HERE - definition of user hooks to implement additional functionality. More...

#include "user_app_info.h"
#include "routing.h"
#include "command.h"

Go to the source code of this file.

Functions

int on_command_received (struct command *com)
 this is called for each command we receive More...
 
void on_new_node (struct hostroute *host)
 called when and if a new node is detected. this may be used, to, for example to activate when a route to the cloud becomes available More...
 
int start (int mculib_handle, struct sc_firmware_api *uapi)
 this is called when the board powers up More...
 
void stop ()
 
void user_loop ()
 this is called frequently, but with no timing guarantees. essentially, it's called in the "idle-loop" of the mcu More...
 

Variables

int MCULIBHANDLE
 
struct userapp_info userapp_vector
 

Detailed Description

START HERE - definition of user hooks to implement additional functionality.

Definition in file userhooks.c.