return cmd.res;
}
-static int pigpioOpenSocket(char *addrStr, char *portStr)
+static int pigpioOpenSocket(const char *addrStr, const char *portStr)
{
int sock, err, opt;
struct addrinfo hints, *res, *rp;
}
}
-int pigpio_start(char *addrStr, char *portStr)
+int pigpio_start(const char *addrStr, const char *portStr)
{
int pi;
int *userdata;
D*/
/*F*/
-int pigpio_start(char *addrStr, char *portStr);
+int pigpio_start(const char *addrStr, const char *portStr);
/*D
Connect to the pigpio daemon. Reserving command and
notification streams.
gpio_write(pi, GPIO, PI_HIGH);
v = gpio_read(pi, GPIO);
CHECK(1, 6, v, 1, 0, "write, read");
+
+ v = pigpio_start(PI_DEFAULT_SOCKET_ADDR_STR, PI_DEFAULT_SOCKET_PORT_STR);
+ CHECK(1, 7, v, 31, 100, "pigpio_start with non-default arguments");
+ pigpio_stop(v);
}
int t2_count=0;