You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've made changes such that the example compiles, but I get a segmentation fault during the initial pairing. The changes consist of changing setValue calls to characteristics::setValue and adding connectionInfo* to the identify callbacks. I'm working on Raspbian. Can anyone out there enlighten me?
I've determined that the fault happens sometime after connectionInfo::handleAccessoryRequest from this GDB back-trace, but I can't get any farther.
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x000431d0 in connectionInfo::handleAccessoryRequest (this=0x69af8 <connection>) at PHKNetworkIP.cpp:881
#2 0x00040c50 in connectionLoop (threadInfo=0x69af8 <connection>) at PHKNetworkIP.cpp:308
#3 0x76ccbe90 in start_thread (arg=0x74dff450) at pthread_create.c:311
#4 0x76ab9598 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:92 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
Ah, it was newConnection that was undefined in the accessory. Added it and deadConnection. It runs now, but the accessory is not supported. Will continue... Assistance still welcome. I'm just trying to produce a simple accessory that prints state changes on the console.
I've made changes such that the example compiles, but I get a segmentation fault during the initial pairing. The changes consist of changing
setValue
calls tocharacteristics::setValue
and addingconnectionInfo*
to the identify callbacks. I'm working on Raspbian. Can anyone out there enlighten me?I've determined that the fault happens sometime after
connectionInfo::handleAccessoryRequest
from this GDB back-trace, but I can't get any farther.Here's my version of the Accessory.cpp
The text was updated successfully, but these errors were encountered: