Compare commits
No commits in common. "bb96326e1a3f953b276e050774253b06d7218040" and "52a05612cbd7f0063223cc93f51896e1d9d90690" have entirely different histories.
bb96326e1a
...
52a05612cb
|
@ -4,9 +4,7 @@ source /etc/nodemecu.conf
|
|||
source /opt/nodemecu/envs
|
||||
source $funciones
|
||||
|
||||
test -z $nombre && exit
|
||||
test -f $public_key || exit
|
||||
|
||||
conteo=$(cat $contador)
|
||||
uuid="$(uuid)"
|
||||
marca_de_tiempo="$(date +%s)"
|
||||
|
||||
|
@ -52,7 +50,8 @@ case $i in
|
|||
esac
|
||||
done
|
||||
|
||||
sensores=$(echo $sensores | tr -d '[:blank:]')
|
||||
|
||||
|
||||
|
||||
json="{\"transaction_uuid\":\"$uuid\",\"serial_number\":\"$numero_serie\",\"public_key\":\"$(cat $public_key)\",\"controller_id\":\"$nombre\",\"timestamp\":\"$marca_de_tiempo\",\"error_code\":\"10\",\"coordinates\":{\"lat\":1,\"lng\":1},\"battery_status\":\"98\",\"sample\":\"0\",\"storage\":\"uso del almacenamiento\",\"arduinos\":[$sensores]}"
|
||||
|
||||
|
|
|
@ -62,9 +62,11 @@ while :;do
|
|||
fi
|
||||
|
||||
rm $curl_err
|
||||
exit
|
||||
fi
|
||||
|
||||
done
|
||||
exit
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue