Skip to content

Convert SenseCAP S2120 payload decoder to ChirpStack v4 format#17

Open
Pixeldieb wants to merge 1 commit into
Seeed-Solution:mainfrom
Pixeldieb:patch-2
Open

Convert SenseCAP S2120 payload decoder to ChirpStack v4 format#17
Pixeldieb wants to merge 1 commit into
Seeed-Solution:mainfrom
Pixeldieb:patch-2

Conversation

@Pixeldieb

Copy link
Copy Markdown

Convert SenseCAP S2120 Payload Decoder to ChirpStack v4

Summary

This pull request updates the SenseCAP S2120 payload decoder to support the ChirpStack v4 codec interface.

Changes

  • Added the required decodeUplink(input) entry point
  • Retained the original manufacturer decoding logic
  • Updated comments and variable names to English
  • Improved payload block parsing and error handling
  • Added a structured error response for decoder exceptions
  • Preserved the existing measurement identifiers and output format

Testing

  • Verified the JavaScript syntax
  • Confirmed compatibility with the ChirpStack v4 custom JavaScript codec format
  • Confirmed that existing SenseCAP measurement payloads continue to use the original decoding logic

Convert SenseCAP S2120 payload decoder to ChirpStack v4 format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant