SingingCat  Build #1255 @ Tue 6 Aug 18:37:32 CEST 2019
application
Functions
userhooks.c File Reference

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

#include "main-header.h"
#include "userhooks.h"
#include "routing.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 detect a route to the cloud
 
void on_startup ()
 this is called when the board powers up More...
 
void user_loop ()
 this is called frequently, but with no timing guarantees. essentially, it's called in the "idle-loop" of the mcu
 

Detailed Description

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

*This file has stubs implemented for additional commands and startup code so this is the ideal place to get started if you want to extend the singingcat modules functionality

Definition in file userhooks.c.