NetworkAircraft

The NetworkAircraft aircraft is a module of the WASMAircraft modular aircraft, which shows an aircraft that has three different screens, each one using a specific method of working with the WASM Network API. Once the WASM Aircraft package has been built, this module will be available for flying from the aircraft selection screen:

Selecting The CommBus Aircraft In The Simulation

 

Once you have built the aircraft and selected it, you can go into a Free Flight and see three panels in the cockpit. These three panels all follow the same format, with a simple text saying "Click here":

Examples Of The Three MapView Screens

 

Each screen is for showing a separate principle component of the Network API. These are (from left to right):

 

  • HttpGet (Loop): When you click on the screen, the gauge will make a request (GET) to an online website to get a random image and display it. It will also copy the image to the work folder, and you can click again and again to get a different image every time. Conceptually this gauge shows how to use the Network API using the "Loop" technique.

 

  • HttpGet (Callback): This gauge has the exact same behaviour as the previously described gauge. However this gauge is conceptually different as it uses the "Callback" technique.

 

  • HttpPut: For this last gauge, clicking will make a request (PUT) to an online website and then copy the returned JSON file into the work folder. Once done, the gauge will display the path to the last JSON downloaded.

 

Examples Of The Three MapView Screens After Clicking