A "fake" Mi-Fi API built with Google AppEngine for Novatel devices. This is how Mi-Fi Monitor was developed without leaving an actual Mi-Fi running all the time :)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Mi-Fi demo API provider

This is a simple but invaluable AppEngine tool for simulating the Mi-Fi CGI interface for querying status from the device.

I created this thing to test 3rd party apps like Mi-Fi Monitor for Mac and Mi-Fi Monitor for iOS to test functionality without having a working device available (comes in handy when asking Apple to review an app without sending them hardware)

If you need this thing, you already know why. If you just want to see an example of faking an API using AppEngine, here you go, have fun :)

Note: I'm not guaranteeing this API will actually give you every possible response a device would spit out, only that it will spit out responses that will allow you to test apps. Some devices will spit out totally psychotic responses, so USE THE REGEX FORCE, LUKE


Most Mi-Fi devices only support GET requests, but they do require a specific query parameter that this code does not check for. On a real device you would hit a URL like this:

And in return you get something like this:


Note the esc character separating each key=value pair, make sure you parse this correctly. You may want to resort to using a regex to validate these things, because some devices will spit out things that will make your app cry otherwise

Note about the debug handler

There is a small section of code here that handles debug data for Mi-Fi Monitor for Mac, just ignore it. It's a simple email bouncing system that has nothing to do with the API