コード例 #1
0
 public static RPiCommLink GetInstance()
 {
     if (m_rpiCommLink == null)
     {
         m_rpiCommLink = new RPiCommLink();
     }
     return(m_rpiCommLink);
 }
コード例 #2
0
 /// <summary>
 /// Update all values asynchronously from the BLE device
 /// </summary>
 /// <returns>The response message.</returns>
 public async Task <string> UpdateAsync()
 {
     return(await RPiCommLink.GetInstance().SendCommandAsync(m_commandString));
 }
コード例 #3
0
 /// <summary>
 /// Update all values from the BLE device
 /// </summary>
 /// <returns>The response message.</returns>
 public string Update()
 {
     return(RPiCommLink.GetInstance().SendCommand(m_commandString));
 }