コード例 #1
0
        /// <summary>
        /// Receives stream request from UI.
        /// Check UART characteristics are properly registered, then send request stream command out to remote device.
        /// </summary>
        public async Task Stream()
        {
            // Flush out data
            DATA_IN.Clear();

            SystemUpdatedEventArgs args = new SystemUpdatedEventArgs
            {
                Status  = SYS_STREAM_START,
                Message = "Starting data stream..."
            };

            EVENT(args);

            // Request stream from menu
            await RUN_BLE_WRITE(uartRx, "S");
        }
コード例 #2
0
        public void WRITE_FILE(List <byte[]> data, string name, byte[] header = null, byte[] footer = null)
        {
            FileManager.WriteFile(data, name, header, footer);

            DATA_IN.Clear();
        }