Register a power station owner account
- To register the power station owner account, you need to provide an unregistered data collector number as a parameter.
| parameter | description | required |
|---|---|---|
| action | reg | true |
| usr | The name of the account to register | true |
| pwd | password, Encrypted by RC4 (SHA-1 (PN), SHA-1 (PWD)). | true |
| false | ||
| mobile | mobile phone | false |
| sn | Digital collector number | true |
| company-key | The vendor ID assigned by the platform | true |
response: Same as authentication interface, showinvoke Authentication interfaces.
if there are questions about the code implementation of RC4 (SHA-1 (PN), SHA-1 (PWD)), refer tojava language example.
possible errors:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | parameter |
| 0x0007 | ERR_MISSING_PARAMETER | Missing necessary parameters (incoming parameters may be empty) |
| 0x000F | ERR_NOT_FOUND_COMPANY_KEY | No manufacturer key found |
| 0x0103 | ERR_INVALID_PN | Invalid data collector number |
| 0x0207 | ERR_USR_EXISTED | User already exists |
| 0x0208 | ERR_PN_REGISTER | The data collector has been registered |