Consumer Side Programming & HTTP Folder - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 

 

Programming Language

  • If you are not using node-wot, make sure to communicate how we should run the programs and that we can run it on a Linux machine and expect us to take more time grading it.
  • Solutions that require a GUI environment are not accepted.
  • If you are using node-wot, choose the npm based installation mentioned in the lecture.
  • You can and should program in TypeScript (a tsconfig is provided in Moodle) but your submission can be in JavaScript or other languages.
  • The template repository have the .ts ending for filenames but this should not be the case if you are using another language. You can delete the .ts files in that case.
  • If you are using JavaScript, store your files at the same place as the .ts files. This applies to other languages as well.

 

Tasks

Create a folder called HTTP. Write different a script for each of the following question that communicates with one the HTTP based Things.

1. Write a script called 1_goodNight that invokes the shutdown action everyday at 9pm UTC according to your runtime environment. Once the response is received, the program quits. Your script should be constantly running until the shutdown is successful.
2. Write a script called 2_cappuccino that invokes the brew action with the cappuccino value. Once the response is received, the program quits.
3. Write a script called 3_checkEspresso that invokes the brew action with the espresso if the machine is in Ready state. Once the response is received or if the machine is not ready, the program quits.
4. Write a script called 4_checkCoffee that invokes the brew action with the coffee of your choice. However, before doing that it checks whether there is more than 10% water and coffee and that the bin is not more than 80% full. Once the response of the brewing is received or if the conditions are not met, the program quits.
5. Write a script called 5_callTheRepairman that listens to the maintenance event. Once the event is received (the payload does not matter), the shutdown action is invoked. Once the response is received, the program quits. You do not have to unsubscribe.
6. Write a script called 6_errorCoffee that invokes the brew action with the coffee of your choice. Before the response of the action is received, the program also subscribes to the error event and logs the event payload only if there is an event emitted while the Thing is responding. Once the response is received, the program quits. Note: This might be tricky to test, we can add artificial delay to the action invocation to make this easier.
7. Create a folder called CoAP. Do the same tasks as in the previous questions but while interacting with a CoAP based Things. Keep the

    

This IT Assignment has been solved by our IT Experts at My Uni Papers. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.