| 1 | package option |
| 2 | |
| 3 | import ( |
| 4 | "github.com/bettercap/gatt" |
| 5 | "github.com/bettercap/gatt/linux/cmd" |
| 6 | ) |
| 7 | |
| 8 | var DefaultClientOptions = []gatt.Option{ |
| 9 | gatt.LnxMaxConnections(1), |
| 10 | gatt.LnxDeviceID(-1, true), |
| 11 | } |
| 12 | |
| 13 | var DefaultServerOptions = []gatt.Option{ |
| 14 | gatt.LnxMaxConnections(1), |
| 15 | gatt.LnxDeviceID(-1, true), |
| 16 | gatt.LnxSetAdvertisingParameters(&cmd.LESetAdvertisingParameters{ |
| 17 | AdvertisingIntervalMin: 0x00f4, |
| 18 | AdvertisingIntervalMax: 0x00f4, |
| 19 | AdvertisingChannelMap: 0x7, |
| 20 | }), |
| 21 | } |