Loading…
Loading…
Method Name: setup_relay
Method ID: 0x4013
Method Label: M-12 Setup Relay
Method Help: setup relay values.
- {
- char status[3];
- int mode;
- int finish;
- int relayAvailable;
- int delay;
- float tmpThreshold;
- SET_NUMBER_OF_RETRIES(3);
- send_command(131);
- relayAvailable = _ivar_value(16420);
- if (relayAvailable)
- {
- enter_password();
- do {
- mode = SELECT_FROM_LIST(literal_string(402),literal_string(403));
- switch (mode)
- {
- case 0:
- finish = 0;
- tmpThreshold = _fvar_value(16421);
- do {
- _get_dev_var_value(literal_string(404),0,16421);
- send(174,status);
- if (status[0] != 0)
- {
Please login for more