Skip to content

katheleligaf/rio203-sensors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rio203-sensors

WebSocket Protocol

sequenceDiagram
    Note over Server,Device: Device connect to server
    Server ->> Device: {request: name}
    Device -->> Server: {response: name, name: ADRESSE_MAC, id: idPlace}
    Note right of Device: ⚠️ send ID only if it exists
sequenceDiagram
    Note over Server,Device: Device get its ID
    Device -->> Server: {request: getId}
    Note left of Server: ⚠️ response only if ID exists
    Server ->>Device : {response: getId, id: idPlace} 

When we create a parking, the Device as an ID in the BDD and a MAC in the Device We need to create a binding between them

sequenceDiagram
    Note over Server,Device: Binding an ID
    Server ->> Device: {request: setId, id: idPlace}
sequenceDiagram
    Note over Server,Device: When car hover over device
    Device -->> Server: {request: info, name: ADRESSE_MAC, id: idPlace, state: CURRENT_STATE}
sequenceDiagram
    Note over Server,Device: When reserving a place
    Server ->> Device: {request: setState, state: reserved}
sequenceDiagram
    Note over Server,Device: Requesting State
    Server ->> Device: {request: state}
    Device -->> Server: {response: state, id: idPlace, name: ADRESSE MAC, state: CURRENT_STATE}
    Note right of Device: free
    Note right of Device: busy
    Note right of Device: reserved
    Note right of Device: error

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published