Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PlatformIO CI

on:
push:
branches: [main, dev, feature/*]
branches: [main, dev]
pull_request:
branches: [main, dev]

Expand Down
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ lib_ignore =

[env:esp8266]
platform = espressif8266
board = esp8266
board = esp01_1m
framework = arduino
monitor_speed = 115200
upload_speed = 921600
Expand Down Expand Up @@ -103,7 +103,7 @@ lib_ignore =
[env:stm32f103]
platform = ststm32
board = nucleo_f103rb
framework = stm32cube
framework = arduino
monitor_speed = 9600
upload_speed = 115200
build_flags =
Expand Down
44 changes: 44 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Minimal LLP Protocol sketch — compiles on all supported platforms.
* Demonstrates frame building and parsing for CI verification.
*/

#include <Arduino.h>
#include <llp_protocol.h>
#include <string.h>

static llp_parser_t parser;

void setup() {
llp_parser_init(&parser);

const char* msg = "Hello LLP";

uint8_t final_payload[32];
uint8_t tx_buffer[64];

size_t payload_len = llp_build_final_payload(
final_payload,
sizeof(final_payload),
(const uint8_t*)msg,
(uint16_t)strlen(msg)
);

size_t frame_len = llp_build_frame(
tx_buffer,
sizeof(tx_buffer),
final_payload,
(uint16_t)payload_len
);

for (size_t i = 0; i < frame_len; i++) {
llp_parser_process_byte(
&parser,
tx_buffer[i],
millis()
);
}
}

void loop() {
}
Loading