ios 蓝牙写入 the connection has timed out unexpectedly

原因:

           _limitLength = [_connectedPerpheral maximumWriteValueLengthForType:type];

系统返回的size大小是错误的,或者说,硬件服务商没有配对,手动改成20(默认最小的大小)

    //特殊打印机配置为最小size
    if([[PrinterManager sharedInstance] isMinSizeDevice]) {
        _limitLength = 20;
    }

你可能感兴趣的:(ios 蓝牙写入 the connection has timed out unexpectedly)