KimGunSoo / sosohaniot

This repository will be used to study the IOT
5 stars 0 forks source link

sosohan IOT

This repository will be used to study the IOT.

member : kimgunsoo, lightreal, junu, Kitae Kim

####### Start sosohan IOT #######

  1. Run django server to control with REST API. $ ./01_run_django_server.sh

  2. Request the REST command to django

    • Format: http:///

    • command:

    • rasp_cmd_init : initialize GPIO pin.

    • rasp_cmd_deinit : deinitialize GPIO pin.

    • rasp_cmd_getstate : get GPIO pin state.

    • rasp_cmd_go : motor go.

    • rasp_cmd_back : motor back.

    • example > http://192.168.137.111:8000/rasp_cmd_go/ #################################

######### Cross Compile #########

  1. Install raspberrypi cross toolchain. $ ./cross_tools/00_set_rpi_tools.sh

  2. Set cross compile environment variable. $ source ./cross_tools/01_set_cross_env.sh

  3. Build your source code. compiler : $RPI_TOOL/bin/arm-linux-gnueabihf-gcc include path : ?? library path : ?? #################################