
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
react-native-aws-freertos
Advanced tools
React native aws freertos bridge
npm install react-native-aws-freertos
cd ios && pod install
Open the ios project with xcode and run from there to a physical device, since npx react-native-run ios will open in the simulator and it wont connect to any bt device.
<uses-permission android:name="android.permission.BLUETOOTH"/>
<!-- initiate device discovery and manipulate bluetooth settings -->
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<!-- allow scan BLE -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
use_frameworks! :linkage => :static
pod 'AmazonFreeRTOS'
pod 'AWSAuthUI'
pod 'AWSMobileClient','~> 2.17.0'
pod 'AWSUserPoolsSignIn'
pod 'react-native-aws-freertos', :path => '../node_modules/react-native-aws-freertos'
Make sure you add bt permissions keys to your Info.plist
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The app needs access to Bluetooth</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>We need to acces BLE to update the device</string>
import AwsFreertos from "react-native-aws-freertos";
// ...
AwsFreertos.getConnectedDeviceAvailableNetworks(deviceMacAddress);
const eventEmitter = new NativeEventEmitter(NativeModules.AwsFreertos);
const wifiListEvent = eventEmitter.addListener(
eventKeys.DID_LIST_NETWORK,
(network: WifiInfo) => {
console.log(network)
}
);
type AwsFreertosType = {
startScanBtDevices(): void;
stopScanBtDevices(): void;
setAdvertisingServiceUUIDs(uuids: string[]): void;
requestBtPermissions(): Promise<any>;
connectDevice(macAddress: string): Promise<any>;
disconnectDevice(macAddress: string): Promise<any>;
disconnectNetworkOnConnectedDevice(macAddress: string, index: number): Promise<any>;
saveNetworkOnConnectedDevice(
macAddress: string,
bssid: string,
pw: string
): Promise<any>;
getConnectedDeviceAvailableNetworks(macAddress: string): Promise<WifiInfo[]>;
getConnectedDeviceSavedNetworks(macAddress: string): Promise<WifiInfo[]>;
getGattCharacteristicsFromServer(
macAddress: string,
serviceUuidString: string
): void;
};
export const events = {
// Bluetooth events
DID_UPDATE_BLE_POWER_STATE: 'DID_UPDATE_BLE_POWER_STATE',
DID_DISCONNECT_DEVICE: 'DID_DISCONNECT_DEVICE',
DID_DISCOVERED_DEVICE: 'DID_DISCOVERED_DEVICE',
DID_CONNECT_DEVICE: 'DID_CONNECT_DEVICE',
DID_FAIL_TO_CONNECT_DEVICE: 'DID_FAIL_TO_CONNECT_DEVICE',
DID_READ_CHARACTERISTIC_FROM_SERVICE: 'DID_READ_CHARACTERISTIC_FROM_SERVICE',
// Wifi events of paired up device
DID_LIST_NETWORK: 'DID_LIST_NETWORK',
DID_SAVE_NETWORK: 'DID_SAVE_NETWORK',
ERROR_SAVE_NETWORK: 'ERROR_SAVE_NETWORK',
DID_EDIT_NETWORK: 'DID_EDIT_NETWORK',
DID_DELETE_NETWORK: 'DID_DELETE_NETWORK',
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
React native aws freertos bridge
The npm package react-native-aws-freertos receives a total of 0 weekly downloads. As such, react-native-aws-freertos popularity was classified as not popular.
We found that react-native-aws-freertos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.