protoc --descriptor_set_out=issue.desc --proto_path=src/sensor --include_imports issue.proto
// Implemented by derive macro | |
pub(crate) trait Struct { | |
fn field_at(&self, index: usize) -> Option<(&'static str, Option<&'a dyn Struct>)>; | |
} | |
pub struct KeyIter<'a> { | |
pub(crate) struct_val: &'a dyn Struct, | |
pub(crate) index: usize, | |
pub(crate) prefix: Option<heapless::String<MAX_KEY_LEN>>, | |
pub(crate) inner: Option<KeyIter<'a>>, |
#!/usr/bin/env bash | |
declare -gA CRED_MAP=() | |
assume_role() { | |
CREDENTIALS=`aws sts assume-role --role-arn arn:aws:iam::$1:role/ExternalAccessProvisionIoT --role-session-name "VERSION-MIGRATION" --duration-seconds 3600 --output=json` | |
AWS_ACCESS_KEY_ID=`echo ${CREDENTIALS} | jq -r '.Credentials.AccessKeyId'` | |
AWS_SECRET_ACCESS_KEY=`echo ${CREDENTIALS} | jq -r '.Credentials.SecretAccessKey'` | |
AWS_SESSION_TOKEN=`echo ${CREDENTIALS} | jq -r '.Credentials.SessionToken'` |
#![no_main] | |
#![no_std] | |
#[rtic::app(device = stm32l4xx_hal::pac, peripherals = true, dispatchers = [UART5, SPI1, SPI2])] | |
mod app { | |
#[monotonic(binds = SysTick, default = true)] | |
type MyMono = DwtSystick<80_000_000>; // 80 MHz | |
const MQTT_QUEUE_LEN: usize = 6144; | |
type MqttClient = Client<'static, 'static, MQTT_QUEUE_LEN>; |
./bbctl device fbduo bootstrap --bootloader bootloader --firmware bootstrap --hardware v1_1
. Note the first line (UUID: "ba79a2bd874d2301"
) this is the "Full UUID" for later.ctrl-c
)cloud.blackbird.online
, Administration page -> Devices, and claim the device using the 7 digit ID./bbctl device fbduo inject-credentials <Full UUID>
eg. ./bbctl device fbduo inject-credentials ba79a2bd874d2301
probe-run --chip STM32L475VGT firmware-v1_1
and wait for (HOST) INFO success!
print// | |
// Decompiled by Procyon v0.5.32 | |
// | |
package com.st.microxplorer.plugins.ip.i2c.gui; | |
import java.util.ArrayList; | |
import org.apache.log4j.Logger; | |
public class I2cTimingTraitement implements I2cConstants |
use embedded_hal::timer::CountDown; | |
use stm32l4xx_hal::time::Hertz; | |
use void::Void; | |
pub struct Millis(pub u32); | |
impl From<u32> for Millis { | |
fn from(ms: u32) -> Self { | |
Millis(ms) | |
} |
use embedded_hal::{digital::v2::OutputPin, PwmPin}; | |
#[derive(PartialEq)] | |
pub enum Polarity { | |
ActiveLow, | |
ActiveHigh, | |
} | |
#[allow(unused)] | |
#[derive(PartialEq)] |
#![feature(prelude_import)] | |
#![no_main] | |
#![no_std] | |
#[prelude_import] | |
use core::prelude::v1::*; | |
#[macro_use] | |
extern crate core; | |
#[macro_use] | |
extern crate compiler_builtins; | |
use atat::{self, ClientBuilder, ComQueue, Queues, ResQueue, UrcQueue}; |
/* # Developer notes | |
- Symbols that start with a double underscore (__) are considered "private" | |
- Symbols that start with a single underscore (_) are considered "semi-public"; they can be | |
overridden in a user linker script, but should not be referred from user code (e.g. `extern "C" { | |
static mut __sbss }`). | |
- `EXTERN` forces the linker to keep a symbol in the final binary. We use this to make sure a | |
symbol if not dropped if it appears in or near the front of the linker arguments and "it's not |