Skip to content

Instantly share code, notes, and snippets.

@YuuichiAkagawa
Created December 16, 2014 12:46
Show Gist options
  • Save YuuichiAkagawa/08246f4b624874607fa8 to your computer and use it in GitHub Desktop.
Save YuuichiAkagawa/08246f4b624874607fa8 to your computer and use it in GitHub Desktop.
#include "FluentLogger.h"
FluentLogger logger("192.168.10.100");
// for fluentd
void send_fluentd()
{
uMP mp(64);
mp.init();
mp.set_map(3); // 3 items
mp.map("humid", (int)humidity);
mp.map("temp", (int)temperature);
mp.map("press", (int)pressure);
logger.open();
logger.log("debug.mbed", mp);
logger.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment