# The mock server for AIRMX Pro [](https://github.com/openairmx/server/actions/workflows/test.yml) [](https://github.com/openairmx/server) This repository contains a mock server used to enable AIRMX Pro devices to communicate. The server allows devices to register themselves with an MQTT server, periodically synchronize the date and time, and facilitate device pairing. > [!WARNING] > Due to the lack of the authentication feature, the code is expected to be run > on your internal network. ## Usage We’re keeping things simple at heart while building it; the server has zero dependencies, so we don’t need to install anything. All you need is to spin up the server with: ``` node server.mjs ``` You should see _Listening on 0.0.0.0:80_. To customize the listening host or port, you can use the following two environment variables: ``` HOSTNAME="127.0.0.1" PORT=8080 node server.mjs ``` ## Endpoints
The device will access this endpoint immediately after it receives the Wi-Fi credentials during the pairing process. Based on the hints from the path name and payload, we believe this endpoint allows the device to determine if it has successfully connected to the AIRMX network.
Therefore, regardless of the parameters the API receives, we will always provide it with a predetermined response, making it appear as though the air monitor and the AIRMX Pro unit are already connected.