Hi Martin, > I try to create a btle server which does advertise itsself with the > name "HEY". > > Attached is a demo program. > Compile with: > > g++ -o leserv leserv.cpp -lbluetooth > > then start the program as root. > And on another host start: > > hcitool lescan > > The current version prints "HEY" but I think the API > is wrong here. Every other version which can be found > on the internet uses the > > // does not work > //hci_le_set_scan_response_data(hciSocket,(uint8_t*)msg,strlen(msg),0); > > implementation, and this one does not work. > > What would be a correct example for this task? you need to the read advertising data format struct. If you are configuring the scan response data, then it needs to follow the TLV format defined by the Bluetooth SIG. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html