1 ============================================================================
2 ``POST l2.gamestickservices.net/api/rest/connect/stick/stick/xxx/view.json``
3 ============================================================================
5 Used for several things:
7 1. Network connection check
8 2. Fetch registration code and session ID for this gamestick.
9 3. Fetch information about games and their display in the main menu
14 When the GameStick is not registered yet, then this URL is fetched
16 Once registered, it is fetched every 2 minutes.
21 Firmware 0.0.53 uses ``GET``.
23 ``DatabaseService.ServiceCore`` can be put into GET mode in Firmware 2071,
24 in that case, GET will be used as well.
28 ``l2.gamestickservices.net``
30 Firmware 0.0.53 uses ``db.gamestickservices.net``.
32 ``/api/rest/connect/stick/stick/xxx/view.json``
35 Hardware-ID, e.g. ``ac:db:da:09:18:5c``
43 Session ID, only when available (not empty)
54 When used for connection check, the response must contain
55 one of the following strings (no whitespace after ``:``)::
57 "status":"CONNECTION_IN_PROGRESS"
61 Not registered yet - ``CONNECTION_IN_PROGRESS``
62 -----------------------------------------------
66 .. include:: api-rest-connect-stick-stick-xxx-view.json.response-unregistered.json
70 Registration complete - ``CONNECTED``
71 -------------------------------------
75 .. include:: api-rest-connect-stick-stick-xxx-view.json.response-registered.json
82 - ``com.playjam.gamestick.WifiTools.ChecksFragment#doDatabaseConnect()``
84 To check if a network connection is available.
85 Only uses ``l2.gamestickservices.net``.