コード例 #1
0
 private void on_sub_string_completed(object sender, AnQueueStringArg e)
 {
     if (e.an_queue_string.IS_DATE_TIME_BIN_ASKING)
     {
         byte[] ary_dt_bytes = rtcDateTime.GetDateTimeBytesFromNow();
         uart_adapter.SendBytesToUart(ary_dt_bytes);
     }
     else if (e.an_queue_string.IS_DATE_TIME_BCD_ASKING)
     {
         byte[] ary_dt_bytes = rtcDateTime.GetDateTimeBytesFromNow();
         uart_adapter.SendBytesToUart(ary_dt_bytes);
     }
     else
     {
         uartDataBuffer.AddCompletedSubString(e.an_queue_string);
     }
 }
コード例 #2
0
 private void on_sub_string_error(object sender, AnQueueStringArg e)
 {
     uartDataBuffer.AddErrSubString(e.an_queue_string);
 }