24 lines
487 B
Django/Jinja
24 lines
487 B
Django/Jinja
/**
|
|
* @file struct2json.h
|
|
*
|
|
* @brief Header file for converting structs to JSON objects.
|
|
*
|
|
* @note This file is auto-generated by a script on {{ timestamp }}.
|
|
*
|
|
* @author Marcel Peterkau
|
|
* @date {{ date }}
|
|
*/
|
|
|
|
#ifndef _STRUCT2JSON_H_
|
|
#define _STRUCT2JSON_H_
|
|
|
|
#include <Arduino.h>
|
|
#include <ArduinoJson.h>
|
|
|
|
#include "config.h"
|
|
|
|
{% for var_name, var_info in structs.items() -%}
|
|
void generateJsonObject_{{ var_name }}(JsonObject& data);
|
|
{% endfor %}
|
|
|
|
#endif /* _STRUCT2JSON_H_ */ |