Skip to content

Commit

Permalink
added modbus prefix to couple endpoints to maintain compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhvitella committed Oct 13, 2016
1 parent ba6c706 commit c3dca1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def load_dump():


@app.route('/slave/<int:slave_id>')
@app.route('/modbus/slave/<int:slave_id>')
def slave(slave_id):
"""
ModbusSim API / Get Slave Info
Expand Down Expand Up @@ -495,6 +496,7 @@ def slave_read(slave_id, address):


@app.route('/slave/<int:slave_id>/<int:address>', methods=['POST'])
@app.route('/modbus/slave/<int:slave_id>/<int:address>', methods=['POST'])
def slave_write(slave_id, address):
"""
ModbusSim API / Write Register
Expand Down

0 comments on commit c3dca1c

Please sign in to comment.