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
# | |
# Copyright (c) 2022 Nordic Semiconductor ASA | |
# | |
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | |
# | |
menuconfig BT_MDS | |
bool "Memfault Diagnostic service" | |
depends on !MEMFAULT_HTTP_ENABLE | |
select BT_NRF_SERVICES |
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
.PHONY: force | |
$(TEST_TARGET).flags: force Makefile | |
$(SILENCE)mkdir -p $(dir $@) | |
$(SILENCE)echo '$(RAW_FLAGS)' | cmp -s - $@ || echo '$(RAW_FLAGS)' > $@ |
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
//! @file | |
//! | |
//! @brief | |
//! Adds a basic set of commands for interacting with Memfault SDK | |
#include <stdlib.h> | |
#include "memfault/components.h" | |
#ifdef SL_COMPONENT_CATALOG_PRESENT | |
#include "sl_component_catalog.h" |
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 paho.mqtt.client as mqtt | |
import requests | |
# MQTT broker configuration | |
broker_address = "localhost" | |
broker_port = 1883 | |
broker_username = "test" | |
broker_password = "test1234" | |
# Memfault HTTP endpoint configuration |
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 json | |
import requests | |
url = "https://ingress.memfault.com/api/v0/events" | |
payload = json.dumps( | |
[ | |
{ | |
"type": "heartbeat", |
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 pathlib | |
import subprocess | |
import click | |
import serial | |
def run_cli_post_chunks(output, project_key, device_serial): | |
args = [ | |
"memfault", |
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
{ | |
description = "Flake used to setup development environment for Zephyr"; | |
# Nixpkgs / NixOS version to use. | |
inputs.nixpkgs.url = "nixpkgs/nixos-21.11"; | |
# mach-nix used to create derivation for Python dependencies in the requirements.txt files | |
inputs.mach-nix.url = "mach-nix/3.5.0"; | |
outputs = { self, nixpkgs, mach-nix }: |