Moved to https://github.com/coderbyheart/fw-nrfconnect-nrf-docker
This file contains hidden or 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
import { Chance } from 'chance' | |
import { v4 } from 'uuid' | |
import { createWriteStream, WriteStream } from 'fs' | |
import * as path from 'path' | |
const numMessages = parseInt(process.argv[process.argv.length - 2], 10) | |
const outDir = process.argv[process.argv.length - 1] | |
const allSensors = [] as string[] | |
for (let i = 0; i < 5; i++) { |
This file contains hidden or 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
package gps; | |
syntax = "proto3"; | |
message gps { | |
message V { | |
double lng = 0; | |
double lat = 1; | |
double acc = 2; | |
double alt = 3; | |
double spd = 4; |
Open-Source at Nordic Semiconductor
Repo | License | Archived |
---|---|---|
NordicSemiconductor/ble-sdk-arduino | MIT | |
NordicSemiconductor/nRF-Logger-API | BSD-3-Clause | |
NordicSemiconductor/Android-nRF-Connect | ❓ | |
NordicSemiconductor/Android-nRF-Toolbox | BSD-3-Clause | |
NordicSemiconductor/Android-nRF-Beacon | BSD-3-Clause | |
NordicSemiconductor/Android-DFU-Library | BSD-3-Clause |
This file contains hidden or 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
#!/bin/sh | |
umask 077 | |
answers() { | |
echo -- | |
echo SomeState | |
echo SomeCity | |
echo SomeOrganization | |
echo SomeOrganizationalUnit | |
echo localhost.localdomain |
This file contains hidden or 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
import { SIMVendor } from './SIMVendor'; | |
export interface SIMVendorRepository { | |
findAll(): Promise<SIMVendor[]>; | |
/** | |
* @throws EntityNotFoundError if the SIMVendor cannot be found. | |
*/ | |
getByUUID(uuid: string): Promise<SIMVendor>; |
How to provision a nRF9160 DK with custom cloud credentials using nRF Connect SDKs Asset Tracker sample.
In this example we want to provision the nRF9160 Development Kit with custom credentials to connect to an MQTT broker. For this guide we still want to connect it to nRF Connect for Cloud but as a new device.
There is a section on connecting via MQTT to nRF Connect for Cloud in the handbook, but here are necessary steps in short:
Open the handbook and log in to with your nRF Connect for Cloud credentials. If you do not have an account, create a new one. (Note that you cannot use your DevZone account at the moment)
This file contains hidden or 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
/-------------------------------------\ | |
/----------------------------------\ /---------------+-------------------------------------+--------\ | |
/+----------------------------------+-------------------+---------------+----------------------------------\ | | | |
|| /---------+-------------------+-\ /-----------+--------------\ | | | /--------\ | |
|| /------+--\ | /------+-+-+-----------+--------------+--------------\ | | | | | | |
|| | | | |/-----------+------+-+-+-----------+--------------+--------------+----+--+--\ | | | | |
|| /---------------+------+--+------++-----------+--\ | | | | /-------+----\ | | | | | | | | |
|| | /---+------+--+-\ || | | | |
This file contains hidden or 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
class FooManager { | |
private readonly barRepo: BarRepository | |
private readonly userPreferencesRepo: UserPreferencesRepository | |
constructor(barRepo: BarRepository, userPreferencesRepo: UserPreferencesRepository) { | |
this.barRepo = barRepo | |
this.userPreferencesRepo = userPreferencesRepo | |
} | |
async findMyFavoriteBar(user: User): Promise<Bar> { | |
const bars = await this.barRepo.findAll() |
This file contains hidden or 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
GITHUB_USERNAME=coderbyheart | |
ACCESS_TOKEN=`cat ~/.netrc | grep "github.com login $GITHUB_USERNAME" | awk '{ print $6; }'` | |
ORGANIZATION=nrfcloud | |
FILENAME=buildspec.yml | |
# Clone them all | |
curl -u $GITHUB_USERNAME:$ACCESS_TOKEN -s https://api.github.com/search/code\?q=org%3A${ORGANIZATION}+filename%3A$FILENAME | jq ".items[].repository.full_name" -a | xargs -I{} git clone https://github.com/{} | |