mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
ble-nordic-uart-service: rename directory
This follows the pattern of other ble service directories.
This commit is contained in:
+1
-1
@@ -4,12 +4,12 @@
|
||||
import { Dispatch as ReduxDispatch } from 'redux';
|
||||
import { AppAction } from './app/actions';
|
||||
import { BleDIServiceAction } from './ble-device-info-service/actions';
|
||||
import { BleUartAction } from './ble-nordic-uart-service/actions';
|
||||
import {
|
||||
BlePybricksServiceAction,
|
||||
BlePybricksServiceCommandAction,
|
||||
BlePybricksServiceEventAction,
|
||||
} from './ble-pybricks-service/actions';
|
||||
import { BleUartAction } from './ble-uart/actions';
|
||||
import { BLEAction, BLEConnectAction } from './ble/actions';
|
||||
import { EditorAction } from './editor/actions';
|
||||
import { FlashFirmwareAction } from './firmware/actions';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2020-2021 The Pybricks Authors
|
||||
// actions/ble-uart.ts: Actions for Bluetooth Low Energy nRF UART service
|
||||
//
|
||||
// Actions for Bluetooth Low Energy Nordic UART service
|
||||
|
||||
import { Action } from 'redux';
|
||||
|
||||
+12
-12
@@ -27,6 +27,18 @@ import {
|
||||
pnpIdUUID,
|
||||
softwareRevisionStringUUID,
|
||||
} from '../ble-device-info-service/protocol';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartWriteAction,
|
||||
didFailToWrite as didFailToWriteUart,
|
||||
didNotify as didNotifyUart,
|
||||
didWrite as didWriteUart,
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import {
|
||||
RxCharUUID as uartRxCharUUID,
|
||||
ServiceUUID as uartServiceUUID,
|
||||
TxCharUUID as uartTxCharUUID,
|
||||
} from '../ble-nordic-uart-service/protocol';
|
||||
import {
|
||||
BlePybricksServiceActionType,
|
||||
didFailToWriteCommand,
|
||||
@@ -37,18 +49,6 @@ import {
|
||||
ControlCharacteristicUUID as pybricksCommandCharacteristicUUID,
|
||||
ServiceUUID as pybricksServiceUUID,
|
||||
} from '../ble-pybricks-service/protocol';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartWriteAction,
|
||||
didFailToWrite as didFailToWriteUart,
|
||||
didNotify as didNotifyUart,
|
||||
didWrite as didWriteUart,
|
||||
} from '../ble-uart/actions';
|
||||
import {
|
||||
RxCharUUID as uartRxCharUUID,
|
||||
ServiceUUID as uartServiceUUID,
|
||||
TxCharUUID as uartTxCharUUID,
|
||||
} from '../ble-uart/protocol';
|
||||
import { RootState } from '../reducers';
|
||||
import { ensureError } from '../utils';
|
||||
import {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
import { AsyncSaga } from '../../test';
|
||||
import { didFailToWrite } from '../ble-nordic-uart-service/actions';
|
||||
import { eventProtocolError } from '../ble-pybricks-service/actions';
|
||||
import { didFailToWrite } from '../ble-uart/actions';
|
||||
import {
|
||||
BleDeviceFailToConnectReasonType,
|
||||
didFailToConnect as bleDidFailToConnect,
|
||||
|
||||
@@ -2,11 +2,14 @@
|
||||
// Copyright (c) 2020-2021 The Pybricks Authors
|
||||
|
||||
import { takeEvery } from 'typed-redux-saga/macro';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartDidFailToWriteAction,
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import {
|
||||
BlePybricksServiceEventActionType,
|
||||
BlePybricksServiceEventProtocolErrorAction,
|
||||
} from '../ble-pybricks-service/actions';
|
||||
import { BleUartActionType, BleUartDidFailToWriteAction } from '../ble-uart/actions';
|
||||
import {
|
||||
BleDeviceActionType,
|
||||
BleDeviceDidFailToConnectAction,
|
||||
|
||||
@@ -4,12 +4,16 @@
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { monaco } from 'react-monaco-editor';
|
||||
import { AsyncSaga } from '../../test';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartWriteAction,
|
||||
didWrite,
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import {
|
||||
BlePybricksServiceCommandActionType,
|
||||
BlePybricksServiceCommandSendStopUserProgram,
|
||||
didSendCommand,
|
||||
} from '../ble-pybricks-service/actions';
|
||||
import { BleUartActionType, BleUartWriteAction, didWrite } from '../ble-uart/actions';
|
||||
import { MpyActionType, didCompile } from '../mpy/actions';
|
||||
import { createCountFunc } from '../utils/iter';
|
||||
import {
|
||||
|
||||
+7
-7
@@ -13,19 +13,19 @@ import {
|
||||
takeEvery,
|
||||
} from 'typed-redux-saga/macro';
|
||||
import { Action } from '../actions';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartDidFailToWriteAction,
|
||||
BleUartDidWriteAction,
|
||||
write,
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import { SafeTxCharLength } from '../ble-nordic-uart-service/protocol';
|
||||
import {
|
||||
BlePybricksServiceCommandActionType,
|
||||
BlePybricksServiceCommandDidFailToSendAction,
|
||||
BlePybricksServiceCommandDidSendAction,
|
||||
sendStopUserProgramCommand,
|
||||
} from '../ble-pybricks-service/actions';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartDidFailToWriteAction,
|
||||
BleUartDidWriteAction,
|
||||
write,
|
||||
} from '../ble-uart/actions';
|
||||
import { SafeTxCharLength } from '../ble-uart/protocol';
|
||||
import { BleDeviceActionType } from '../ble/actions';
|
||||
import {
|
||||
MpyActionType,
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
didFailToWrite,
|
||||
didNotify,
|
||||
didWrite,
|
||||
} from '../ble-uart/actions';
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import { HubChecksumMessageAction, HubMessageActionType } from '../hub/actions';
|
||||
import { HubRuntimeState } from '../hub/reducers';
|
||||
import { createCountFunc } from '../utils/iter';
|
||||
|
||||
@@ -13,8 +13,12 @@ import {
|
||||
takeEvery,
|
||||
} from 'typed-redux-saga/macro';
|
||||
import { Action } from '../actions';
|
||||
import { BleUartActionType, BleUartDidNotifyAction, write } from '../ble-uart/actions';
|
||||
import { SafeTxCharLength } from '../ble-uart/protocol';
|
||||
import {
|
||||
BleUartActionType,
|
||||
BleUartDidNotifyAction,
|
||||
write,
|
||||
} from '../ble-nordic-uart-service/actions';
|
||||
import { SafeTxCharLength } from '../ble-nordic-uart-service/protocol';
|
||||
import { checksum } from '../hub/actions';
|
||||
import { HubRuntimeState } from '../hub/reducers';
|
||||
import { RootState } from '../reducers';
|
||||
|
||||
Reference in New Issue
Block a user