Query Current SIM Card Slot

555

# Query Current SIM Card Slot

Path:

/api/simslot.json

Method: GET

Content-type: application/json; charset=utf-8

API Description This can be used to query the SIM card slot that is being used.

Note: This function is only supported by the player of version 1.70.5 or above and with Neoway N58 module; You need to wait for around 20s to let the new SIM card connect to the internet due to the operations of serial port reading and writing.

Response

Name Type Example Description Enum
code int 200 Response status code 200: Successful request
412: Module not exists
500: Error querying card slot
data int 1 SIM card slot that is in use 1: Slot 1 is in use.
2: Slot 2 is in use.
-1: Cannot switch SIM card.
msg String 200 success Response status description /

Example

{
    "code": 200,
    "data": 1,
    "msg": "200 success"
}