Public Member Functions | |
PiMixedClient (String host) | |
PiMixedClient (String host, int httpPort, int coapPort) | |
void | setCredentials (String login, String password) |
String | sendRequest (String method, String path) throws Exception |
![]() | |
PiClient (String protocol, String host, int port) | |
void | setCredentials (String login, String password) |
abstract String | sendRequest (String method, String path) throws Exception |
Private Attributes | |
PiHttpClient | http |
PiCoapClient | coap |
int | tries = 0 |
int | maxTries = 3 |
Additional Inherited Members | |
![]() | |
static String | encodeCredentials (String login, String password) |
![]() | |
String | urlBase |
String | auth |
Definition at line 17 of file PiMixedClient.java.
com.trouch.webiopi.client.PiMixedClient.PiMixedClient | ( | String | host | ) |
Definition at line 24 of file PiMixedClient.java.
com.trouch.webiopi.client.PiMixedClient.PiMixedClient | ( | String | host, |
int | httpPort, | ||
int | coapPort | ||
) |
Definition at line 30 of file PiMixedClient.java.
String com.trouch.webiopi.client.PiMixedClient.sendRequest | ( | String | method, |
String | path | ||
) | throws Exception |
Definition at line 43 of file PiMixedClient.java.
References coap-client.response, com.trouch.webiopi.client.PiHttpClient.sendRequest(), and com.trouch.webiopi.client.PiCoapClient.sendRequest().
Referenced by webiopi.clients.Macro.call(), webiopi.clients.GPIO.digitalRead(), webiopi.clients.GPIO.digitalWrite(), webiopi.clients.Temperature.getCelsius(), webiopi.clients.Distance.getCentimeter(), webiopi.clients.Temperature.getFahrenheit(), webiopi.clients.GPIO.getFunction(), webiopi.clients.Pressure.getHectoPascal(), webiopi.clients.Distance.getInch(), webiopi.clients.Temperature.getKelvin(), webiopi.clients.Luminosity.getLux(), webiopi.clients.Distance.getMillimeter(), webiopi.clients.Pressure.getPascal(), webiopi.clients.GPIO.portRead(), webiopi.clients.GPIO.portWrite(), webiopi.clients.ADC.read(), webiopi.clients.PWM.readAngle(), webiopi.clients.ADC.readFloat(), webiopi.clients.ADC.readVolt(), webiopi.clients.GPIO.setFunction(), webiopi.clients.DAC.write(), webiopi.clients.PWM.writeAngle(), webiopi.clients.DAC.writeFloat(), and webiopi.clients.DAC.writeVolt().
void com.trouch.webiopi.client.PiMixedClient.setCredentials | ( | String | login, |
String | password | ||
) |
Definition at line 37 of file PiMixedClient.java.
References com.trouch.webiopi.client.PiClient.setCredentials().
|
private |
Definition at line 19 of file PiMixedClient.java.
|
private |
Definition at line 18 of file PiMixedClient.java.
|
private |
Definition at line 22 of file PiMixedClient.java.
|
private |
Definition at line 21 of file PiMixedClient.java.