pub fn detect_device_pattern(name: &str) -> DevicePattern
Detect the device pattern from a BLE device name