This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <PubSubClient.h> | |
#include <Ethernet.h> | |
/* | |
* m2m.io Client App | |
* | |
* Client application for m2m.io M2M platform. | |
* | |
* Client handles provioning as well as provides a template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TODO: Add arg to get path | |
path_to_new_dse_dir=/Users/franklovecchio/Desktop/development/dse | |
handle_args() { | |
} | |
# $1: path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Find a value in simple JSON object from a key | |
# $1: key to find | |
# $2: JSON | |
find() { | |
for i in $(echo $2 | tr "," "\n"); do | |
i=`echo $i | sed "s/{//g" | sed "s/}//g" | sed "s/\"//g"` | |
set=($(echo $i | tr ":" "\n")) | |
if [ "$1" == "${set[0]}" ]; then |
NewerOlder