Go to file
2021-12-17 09:17:26 +09:00
.README.assets commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
bootstrap commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
containermgmt commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
containers commit 2021-12-17]09:17:23 2021-12-17 09:17:26 +09:00
model commit 2021-12-15]17:07:50 2021-12-15 17:07:52 +09:00
public-ws commit 2021-12-13]14:39:07 2021-12-13 14:39:16 +09:00
router commit 2021-12-17]09:17:23 2021-12-17 09:17:26 +09:00
watcher commit 2021-12-13]14:39:07 2021-12-13 14:39:16 +09:00
.gitignore commit 2021-12-15]17:07:50 2021-12-15 17:07:52 +09:00
config.properties commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
docker-compose.yaml commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
ETRI-SMARTFARM-POC.postman_collection.json commit 2021-11-18]00:11:43 2021-11-18 00:11:54 +09:00
go.mod commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
go.sum commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
init.sh commit 2021-12-13]14:39:07 2021-12-13 14:39:16 +09:00
main.go commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
POC-ENV.postman_environment.json commit 2021-11-18]00:11:43 2021-11-18 00:11:54 +09:00
README.md commit 2021-11-16]21:28:48 2021-11-16 21:28:52 +09:00
server commit 2021-11-18]00:11:43 2021-11-18 00:11:54 +09:00

디바이스 공통 정보

  • 디바이스 이름 / 관리 서비스 이름 / prompt

컨트롤러 및 등록

디바이스 탐색 및 등록

  • Procedure

image-20211115105354958

  • Device -> Controller

    {
        "dname": "thermometer",
        "type": "sensor", 
    	"sname": "devicemanagerA",
        "cid": 
    }
    
  • controller -> server

    {
        "name": "temp",
        "type": "sensor", 
        "did": "temp-1",
        "cid": "controller-1",
    	"sid": "devicemanagerA"    
    }
    
  • client -> server

    {
        "did": "thermometer-1"
    }
    

API

  • get-services

    • http://{{server}}/services
  • post-services

    • http://{{server}}/services

      {
          "name": "devicemanagera"
      }
      
  • post-controller

    • http://{{server}}/controllers

      {
          "cname": "controller-A"
      }
      
  • get-controller

    • http://{{server}}/controllers
  • post-devices

    • http://{{server}}/devices

      {
          "dname": "device-A",
          "type": "sensor",
          "cid": "e09c50b3-40d1-4267-888e-272d6a7d4845",
          "sname": "devicemanagerb"
      }
      
  • get-devices

    • http://{{server}}/devices
  • put-devices

    • http://{{server}}/services

      {
          "name": "devicemanagerA",
          "addr": "127.0.1.1:3001"
      }