Uploaded by suhasgovind0101

ALGORITHM FOR WEBPAGE DISPLAY IN A SMART PARKING SYSTEM

advertisement
ALGORITHM FOR WEBPAGE DISPLAY FOR A SMART PARKING SYSTEM:
Step
Step
Step
Step
Step
1:
2:
3:
4:
5:
Start
Enter the new URL schema for WebSocket connections.
Enter the Device ID
Enter the Device Token
write content to html page
Step 6: Check if browser supports websocket protocol or not
Step 7: Display value in step 6
Step 8: Open up a WebSocket connection simply by calling the WebSocket
constructor
Step 9: When the connection is eshtablished, function invoked
automatically
Step 10: Registration is required for secure data transmission
Register, after the connection is established.
Step 11: Register the device in the WebSocket connection
Step 12: IF device registration fails, display: “Failed to register
messages. Error in registering message”
Step 13: Process the data after receiving the inputs
Step 14: Display the number of available free slots
Step 15: Stop
Download