This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const sbCreateUserListQuery = userIdsArray => { | |
const sb = SendBird.getInstance() | |
let applicationUserListQuery = sb.createApplicationUserListQuery() | |
applicationUserListQuery.limit = 100 | |
applicationUserListQuery.userIdsFilter = userIdsArray | |
return applicationUserListQuery | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class App extends Component { | |
constructor(props) { | |
super(props) | |
this.BLEManager = new BleManager({ | |
restoreStateIdentifier: 'bleManagerRestoredState', | |
restoreStateFunction: bleRestoredState => this.handleBLEManagerStateRestoration(bleRestoredState) | |
}) | |
this.BLEManager.setLogLevel(LogLevel.Verbose) | |
this.BLEManager.onDeviceDisconnected(() => console.log('hey, device disconnected')) | |
this.props.actions.saveBLEManager(this.BLEManager) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
#include <Audio.h> | |
#include <Wire.h> | |
#include <SPI.h> | |
#define NUM_LEDS 300 | |
#define DATA_PIN 7 | |
#define CLOCK_PIN 14 | |
CRGB leds[NUM_LEDS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main code for Master Node RF Reading and GPRS Transmitting // | |
// Written by Kuan-Sheng Chen and Karim Abdallah. July 26 2017. Save the Date. | |
// | |
// v 1.0. Includes RF Reading, data parsing, and trasmitting to AWS database with POST. | |
// Ain't she a beauty. | |
// Libraries and inspiration courtesy of Adafruit and various partners. | |
#include <SPI.h> | |
#include <RH_RF95.h> |
NewerOlder