Posts

Showing posts from February 14, 2019

Change skin color automatically

Image
1 I would like to be able to change the skin colour of my emoticons on slack, to pick a random one. I haven't found anything that would do it, neither internal to slack nor external. Have I not looked hard enough? Otherwise, is this achievable through a custom plugin/module/whatever-it-s-called-in-slack ? slack share | improve this question asked Nov 23 '18 at 14:02 Thierry J. Thierry J. 1,422 9 20 add a comment  | 

NSLocalizedDescription=Writing is not permitted

Image
0 I tried to make an app that sends messages from iPhone to Bluetooth LE module. But for some reason, it gives the following error: NSLocalizedDescription=Writing is not permitted . Even though the types of the blePeripheral and the blePeripheral!.write are CBCharacteristicWrite.withResponse , the error says that writing is not permitted. How come the following code does not work for me? func writeValue(data: String) { let valueString = (data as NSString).data(using: String.Encoding.utf8.rawValue) //change the "data" to valueString if let blePeripheral = blePeripheral { if let txCharacteristic = txCharacteristic { blePeripheral.writeValue(valueString!, for: txCharacteristic, type: CBCharacteristicWriteType.withResponse) } } } func writeChar