Parse Layanan Cloud dan Intel Edison



? Parse — , -. , , , , , push-, . Parse Embedded SDK IoT-.

, Parse Embedded SDK Intel Edison , push-.
. Intel Edison . , Intel Developer Zone – IoT.

Intel Galileo, Intel Edison Ethernet , Wi-Fi. , Ethernet USB (RNDIS). , configure_edison, . , .

, Intel Edison , Parse SDK. parse.com . . , , , «Quickstart». . :



«Quickstart» «embedded», «Linux». Raspberry Pi, , Intel Edison. , Intel Edison SDK . uuid-dev. 1 «Install the SDK» ssh- Intel Edison - (, Putty) :

root@edison:~# echo "src/gz i586 http://iotdk.intel.com/repos/1.5/iotdk/i586/" >> /etc/opkg/base-feeds.conf
root@edison:~# opkg update
root@edison:~# opkg install util-linux-dev

«Intel IoT developer kit» opkg. Linux. .

2 3 Parse SKD , , . :

root@edison:~# cd ~
root@edison:~/parse-sdk# wget https://parse.com/downloads/embedded_linux/parse-embedded-sdks-1.0.0.zip --no-check-certificate
root@edison:~/parse-sdk# unzip parse-embedded-sdks-1.0.0.zip
root@edison:~# cd parse-embedded-sdks-1.0.0/
root@edison:~/parse-embedded-sdks-1.0.0# autoreconf -fi
root@edison:~/parse-embedded-sdks-1.0.0# ./configure --prefix=/usr
root@edison:~/parse-embedded-sdks-1.0.0# make
root@edison:~/parse-embedded-sdks-1.0.0# make install

, Parse SDK Intel Edison. push- parse.com. , Settings. «Push» «Enable Push Notification».



:

root@edison:~/parse-embedded-sdks-1.0.0# cd ..
root@edison:~# wget https://parse.com/downloads/embedded_linux/RaspberryPiStarterProject-1.0.0.zip --no-check-certificate
root@edison:~# unzip RaspberryPiStarterProject-1.0.0.zip


main.c makefile, Parse. , vi, Intel Edison , . Notepad++ NppFTP, FTP. , , WinSCP.

, Parse push-. main.c . , , :



main.c :



, makefile, :

root@edison:~# cd raspberry-pi-starter-project
root@edison:~/raspberry-pi-starter-project# make
root@edison:~/raspberry-pi-starter-project# ./quickstart

Intel Edison. , «Test» Parse , push-. :

received push: '{"data":{"alert":"A test push from Parse!"},"time":"2015-05-18T04:21:13.946Z"}'


, ! , Parse SDK Intel Edison.
Parse SDK github.

Source: https://habr.com/ru/post/id388673/


All Articles