preset added. for easier conf.

This commit is contained in:
Dooho Yi 2019-12-15 05:03:44 +09:00
parent aee36c2724
commit 3cabe1ef52

View file

@ -38,25 +38,49 @@
// and then, this 32 bytes will be flying in the clouds. // and then, this 32 bytes will be flying in the clouds.
// //
//==========<configuration>=========== //==========<configurations>===========
#define DISABLE_AP //
// 'DISABLE_AP'
// --> disabling AP is for teensy audio samplers. // --> disabling AP is for teensy audio samplers.
// they need this to reduce noise from AP beacon signals. // they need this to reduce noise from AP beacon signals.
// but, then they cannot build-up net. by themselves. // but, then they cannot build-up net. by themselves.
// we need who can do AP.. // we need who can do AP..
// ==> TODO! just prepare some 'dummy' postmans around. w/ AP activated. // ==> TODO! just prepare some 'dummy' postmans around. w/ AP activated.
#define DISABLE_I2C_REQ //
// 'DISABLE_I2C_REQ'
// --> a quirk.. due to bi-directional I2C hardship. // --> a quirk.. due to bi-directional I2C hardship.
// ideally, we want to make this sampler node also speak. // ideally, we want to make this sampler node also speak.
// but, I2C doesn't work. maybe middleware bug.. we later want to change to diff. proto. // but, I2C doesn't work. maybe middleware bug.. we later want to change to diff. proto.
// for example, UART or so. // for example, UART or so.
// ==> BEWARE! yet, still we need to take off this.. for 'osc' node. // ==> BEWARE! yet, still we need to take off this.. for 'osc' node.
// #define SET_ROOT //
#define SET_CONTAINSROOT // 'SET_ROOT'
// 'SET_CONTAINSROOT'
// --> for the network stability // --> for the network stability
// declare 1 root node and branches(constricted to 'contains the root') // declare 1 root node and branches(constricted to 'contains the root')
// to improve the stability of the net // to improve the stability of the net
//==========</configuration>========== //
//==========</configurations>==========
//==========<preset>===========
// (1) the backbone AP
#if 1
#define DISABLE_I2C_REQ
#define SET_CONTAINSROOT
// (2) osc client (the ROOT)
#elif 0
#define SET_ROOT
#define SET_CONTAINSROOT
// (3) sampler client
#elif 0
#define DISABLE_AP
#define DISABLE_I2C_REQ
// (4) network monitor
#elif 0
#define SET_CONTAINSROOT
//
#endif
//==========</preset>==========
//============<parameters>============ //============<parameters>============
#define MESH_SSID "cricket-crackers" #define MESH_SSID "cricket-crackers"