50ButtonsEach / fliclib-linux-dist

114 stars 19 forks source link

Example throws: "Failed to connect to host" #39

Closed Ziemowit closed 8 years ago

Ziemowit commented 8 years ago

Command hciconfig -a gives me:

hci1:   Type: BR/EDR  Bus: USB
    BD Address: 00:27:13:F3:5F:84  ACL MTU: 1021:8  SCO MTU: 64:1
    DOWN 
    RX bytes:860 acl:0 sco:0 events:38 errors:0
    TX bytes:2329 acl:0 sco:0 commands:38 errors:0
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH HOLD SNIFF PARK 
    Link mode: SLAVE ACCEPT 

hci0:   Type: BR/EDR  Bus: USB
    BD Address: 5C:F3:70:6D:7A:F9  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING PSCAN ISCAN 
    RX bytes:4349 acl:0 sco:0 events:105 errors:0
    TX bytes:1190 acl:0 sco:0 commands:105 errors:0
    Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'Ziemowit-ESGroup'
    Class: 0x0c010c
    Service Classes: Rendering, Capturing
    Device Class: Computer, Laptop
    HCI Version: 4.0 (0x6)  Revision: 0x1000
    LMP Version: 4.0 (0x6)  Subversion: 0x220e
    Manufacturer: Broadcom Corporation (15)

But when I try to run example from your github then I receive:

terminate called after throwing an instance of 'flic::client::ClientNetworkException'
  what():  Failed to connect to host
fabianbergmark commented 8 years ago

That means it cannot connect to the daemon program, have you started that?

Ziemowit commented 8 years ago

Heh sorry I had but wrong version ;] It is solved!