s2energy

Crates.ios2energy
lib.rss2energy
version0.1.1
created_at2025-01-21 09:34:16.27276+00
updated_at2025-02-03 12:59:46.756002+00
descriptionProvides type definitions and utilities for the S2 energy flexibility standard
homepagehttps://s2standard.org
repositoryhttps://github.com/flexiblepower/s2-rust
max_upload_size
id1524677
size195,935
Wester Coenraads (wcoenraads)

documentation

README

The S2 standard for Rust: s2energy


This crate provides type definitions and utilities for working with the S2 energy flexibility standard in Rust. S2 is a communication standard for energy flexibility and energy management in homes and buildings, designed to simplify the use of energy flexibility of smart devices. To learn more about the S2 standard:

Crate contents

This crate provides Rust types for all types specified by S2. It also provides utilities that help you manage an S2 connection over websockets with JSON as the format, including functions to easily set up a WebSocket server/client to send/receive S2 messages.

JSON over WebSockets is a common and recommended way to implement S2, but you're free to choose a different format and communication protocol. In that case, the types in this crate should still be useful but you may wish to disable the websockets-json feature.

Documentation

You can find the crate documentation at docs.rs. The crate documentation assumes that you are familiar with S2; if this is not the case, you may want to refer to the GitHub wiki for the S2 JSON schema. That documentation explains S2 concepts in more detail.

Commit count: 5

cargo fmt