Skip to content

SFUSatClub/houston-reasonml-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Houston

ReasonML + GraphQL + SerialPort proof of concept. You can read more about it here https://medium.com/sfu-sat/houston-reasonml-serialport-graphql-b3d6f1532a2

Getting stated

  • first setup ReasonML
  • then npm install and npm start and go to http://localhost:4000
  • you can explore the schema.graphql to learn more about the functionalities available to you

Create a command sequence

mutation {
  createCommandSequence(
    sequence: {
      name: "sn"
      description: "sd"
      commands: [{ name: "cn", timeout: 14000, wait: 4000, arguments: [] }]
    }
  ) {
    id
  }
}

Listen for state changes

In a new tab

subscription {
  state {
    uplink {
      inProgress
      sequenceId
      pending
      unresolved
      successful
      failed
    }
  }
}

Execute the command sequence

In a new tab

mutation {
  uplinkCommandSequence(id: "fd9220efed406a1a0324398e8e44d71a44b65d11")
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published