pippin wrote:
> Hm, doesn't seem to fire, indeed.
> You are using BCM 25 (pin 22 on the connector), right?
Uhhm, no GPIO25, pin 35
I just looked at GPIO.c Your using the GPIO pin numbering
Code:
--------------------
void init_GPIO() {
loginfo("Initializing GPIO");
wiringPiSetupGpio() ;
}
--------------------
So I changed to pin 22, and it fires. That makes no sense.
Now for the next problem
Code:
--------------------
1488517174.3631 6 control.c,148: Button pressed: Pin 25
1488517174.3632 7 servercomm.c,111: Server ::192.168.0.141:9000 command:
{"id":1,"method":"slim.request","params":["b8:27:eb:d9:dd:e",["button","power"]]}
* Connecting to hostname: 192.168.0.141
* Connecting to port: 9000
* Connection 0 seems to be dead!
* Closing connection 0
* Trying 192.168.0.141...
* TCP_NODELAY set
* Connected to 192.168.0.141 (192.168.0.141) port 9000 (#1)
> POST /jsonrpc.js HTTP/1.1
Host: localhost
Accept: */*
Content-Type: application/json
User-Agent: SqueezeButtonPi/1.0)
Content-Length: 81
* upload completely sent off: 81 out of 81 bytes
* Empty reply from server
* Connection #1 to host 192.168.0.141 left intact
1488517174.3666 7 servercomm.c,121: Curl result: 52
--------------------
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy