Registered Plants Owner
- Registered Plants Owner requires providing an unregistered Datalogger number as a parameter
Parameter | Description | Required |
---|---|---|
action | reg | True |
usr | Account name to register | True |
pwd | Password, encrypted by RC4 (SHA-1 (PN), SHA-1 (PWD)) | True |
False | ||
mobile | Mobile phone | False |
sn | Datalogger number | True |
company-key | Manufacturer identification assigned by the platform | True |
response: Same authentication interface, refer to Authentication interface call.
If there are doubts about the code implementation of RC4 (SHA-1 (PN), SHA-1 (PWD)), refer to Java Language Example.
Possible errors:
response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x0007 | ERR_MISSING_PARAMETER | Missing necessary parameters (incoming parameters may be empty) |
0x000F | ERR_NOT_FOUND_COMPANY_KEY | No company-key found |
0x0103 | ERR_INVALID_PN | Invalided Datalogger number |
0x0207 | ERR_USR_EXISTED | User already exists |
0x0208 | ERR_PN_REGISTER | The Datalogger has been registered |
0x0010 | ERR_PASSWORD_VERIF_FAIL | Password verification failed |
0x0013 | ERR_MOBILE_FORMAT | Phone number format error |
0x0014 | ERR_EMAIL_FORMAT | Email format error |
0x0015 | ERR_USRNAME_FORMAT | User name format error |