Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4575

SDK • Need help integrating database functionality into C web server code

$
0
0
Hello everyone,

I'm currently working on a project where I have a C-based web server running on a Pi Pico W board. The web server displays real-time data such as voltage, temperature, and LED status on an index page.

Now, I want to extend this functionality by integrating database functionality into my code to store these data values in a SQLite database.

Here's a summary of what I have:
  • A C-based web server running on a Pico board.
  • Real-time data (voltage, temperature, and LED status) displayed on the index page.
I have SQLite installed and ready to use.
What I need help with:

Modifying my existing C code to include database functionality.
  • Storing the real-time data values (voltage, temperature, and LED status) in a SQLite database.
  • Ensuring that the database operations are performed efficiently and error-handled appropriately.
I've already made some attempts, but I'm struggling with the implementation details. Can anyone provide guidance or code examples on how to achieve this?

Any help or advice would be greatly appreciated!

Thank you in advance.

I was inspired by this https://github.com/LearnEmbeddedSystems ... r-template and I wanted to implement data storing in it

Statistics: Posted by Gammmm — Wed Apr 10, 2024 1:12 am — Replies 0 — Views 16



Viewing all articles
Browse latest Browse all 4575

Trending Articles