GDSC-HSU / gateway

[Top 3] 2022 Solution Challenge an IoT apporch include Flutter & embedded devices, network protocol, solving/helping covid-19 situation
MIT License
23 stars 9 forks source link

[Backend] Organization able to register and update detail for their devices. #12

Open truonghoangduy opened 2 years ago

truonghoangduy commented 2 years ago

EPIC :

Dependency : #11 when user already has the organization endpoint The functionality is allow organization to add the device(mobile) and configure device information into their organization for device management.

System actor : Mobile, Web

Description :

Organization on their Web dashboard and create new device (without any information), only has the QRCode encoded with the device-assess-key, When Mobile scan the QRCode so that it could claim(device-assess-key) the created device and upload it information to the organization.

New device are created with the organization with the following information [x]. When device are added susses-fully organization are able to modify their changeable information

This bellow information will be saved to the mobile app (local data) and use for device authentication.

[x] device information

Device name: string -changeable

Device location: string 
(Name of streets, school campus location or custom markup, GPS stamp) -changeable

Device unique id: string 
 (user for api parameter)

Device assess key: string

Device MAC address: string

Tag: array of string
(Device tag for query, filter purpose) -changeable

Device authentication only use device-assess-key , device-id, device-mac Hardware information data : MAC address


Specification

How device claim work

  1. Device scan the QR encoded with device-assess-key
  2. Device claim the new created in the backend by provide scanned device-assess-key
  3. When claim device upload it hardware data to claim the created device

Note

DangCao1999 commented 2 years ago

Create/connect the device

Sequence diagram