Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
src
Makefile
README.md

README.md

logfile_reader

This example uses the Logfile API to open and read a PolySync logfile plog file for replay.

It depends on a file found in the /tmp/ directory, but can easily be updated to point to any existing plog file (the intention of the example). /tmp/polysync_logfile.plog

Steps to run:

  1. Update the file src/logfile_reader.c on line 74 to point to an existing plog file, (point to new rnr_logs location)
  2. Compile
  3. Run

Dependencies

Packages: libglib2.0-dev

To install on Ubuntu:

sudo apt-get install libglib2.0-dev

Building and running the node

$ cd logfile_reader
$ make
$ ./bin/polysync-logfile-reader-c 

For more API examples, visit the "Tutorials" and "Development" sections in the PolySync Help Center here.