ReasonML + GraphQL + SerialPort proof of concept. You can read more about it here https://medium.com/sfu-sat/houston-reasonml-serialport-graphql-b3d6f1532a2
- first setup ReasonML
- then
npm install
andnpm start
and go to http://localhost:4000 - you can explore the
schema.graphql
to learn more about the functionalities available to you
mutation {
createCommandSequence(
sequence: {
name: "sn"
description: "sd"
commands: [{ name: "cn", timeout: 14000, wait: 4000, arguments: [] }]
}
) {
id
}
}
In a new tab
subscription {
state {
uplink {
inProgress
sequenceId
pending
unresolved
successful
failed
}
}
}
In a new tab
mutation {
uplinkCommandSequence(id: "fd9220efed406a1a0324398e8e44d71a44b65d11")
}