Révision 35f65dee SICPA_Connexions/Model/GestionnaireBLE.cs
SICPA_Connexions/Model/GestionnaireBLE.cs | ||
---|---|---|
20 | 20 |
private List<ICharacteristic> charList; |
21 | 21 |
private ICharacteristic characRead; |
22 | 22 |
private ICharacteristic characWrite; |
23 |
private String tempoLecture; |
|
23 | 24 |
private String retourBLE; |
24 | 25 |
public event EventHandler RetourBlEMofifiee; |
25 | 26 |
public IDevice DeviceConnected { get; set; } |
... | ... | |
185 | 186 |
} |
186 | 187 |
charStrBytes += " | int: " + char_val.ToString(); |
187 | 188 |
} |
188 |
RetourBLE = RetourBLE + charStrUTF8; |
|
189 |
tempoLecture = tempoLecture + charStrUTF8; |
|
190 |
if (args.Characteristic.StringValue.EndsWith("\r\n")) |
|
191 |
{ |
|
192 |
RetourBLE = tempoLecture; |
|
193 |
tempoLecture = ""; |
|
194 |
} |
|
189 | 195 |
//_charStr += Environment.NewLine; // the NewLine command is added to go to the next line |
190 | 196 |
|
191 | 197 |
//MainThread.BeginInvokeOnMainThread(() => // as this is a callback function, the "MainThread" needs to be invoked to update the GUI |
Formats disponibles : Unified diff