Skip to content

Commit

Permalink
Add example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Sep 13, 2024
1 parent 90bef03 commit 79e23bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,32 @@

# FST Communication Protocol

Interface description language with a focus on communication protocols.
FCP is an interface description language to exchange information independently of language and platform.

## Install

$ pip install fcp

## Example

```
version: "3"
use temperature::Temperature;
/*this is a comment*/
enum SensorState {
Off;
On;
Error;
};
struct SensorInformation {
temperature @ 0: Temperature;
sensor_state @ 1: SensorState
};
```

## Documentation

See [readthedocs.io](https://fcp-core.readthedocs.io/en/latest/)
Expand Down
2 changes: 1 addition & 1 deletion example/example.fcp
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ enum SensorState {

struct SensorInformation {
temperature @ 0: Temperature;
sensor_state @ 1: SensorState
sensor_state @ 1: SensorState;
};

0 comments on commit 79e23bb

Please sign in to comment.