Révision 35f65dee
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 |
SICPA_Connexions/SICPA_Connexions.csproj.user | ||
---|---|---|
3 | 3 |
<PropertyGroup> |
4 | 4 |
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen> |
5 | 5 |
<ActiveDebugFramework>net7.0-android</ActiveDebugFramework> |
6 |
<ActiveDebugProfile>Samsung SM-G736B (Android 14.0 - API 34)</ActiveDebugProfile>
|
|
6 |
<ActiveDebugProfile>Samsung SM-A202F (Android 11.0 - API 30)</ActiveDebugProfile>
|
|
7 | 7 |
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup> |
8 | 8 |
<DefaultDevice>pixel_5_-_api_26</DefaultDevice> |
9 | 9 |
</PropertyGroup> |
SICPA_Connexions/View/AnimalView.xaml | ||
---|---|---|
53 | 53 |
</StackLayout> |
54 | 54 |
</StackLayout> |
55 | 55 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
56 |
<BoxView BackgroundColor="#FFFFFF" Opacity="0.3" />
|
|
56 |
<BoxView BackgroundColor="#FFFFFF" Opacity="0.5" />
|
|
57 | 57 |
<ActivityIndicator |
58 | 58 |
HorizontalOptions="Center" |
59 | 59 |
IsRunning="True" |
Formats disponibles : Unified diff