Skip to content

Feature 08 lan connection

Daniel Fulop requested to merge feature-08-lan-connection into development

The user should be able to enter a code which represents the speaker's ip address. Then once the speaker is detected it should be able to be "connected to" which means sending the encrypted login details on the local network. Also make sure your computer's firewall does not block the port connection. For testing purposes I created a fake pie flask server you can use to use your computer like the pie.

from flask import Flask, request
import json
app = Flask(__name__)


@app.route('/')
def main():
    print("/ route called")
    return json.dumps({'name-of-speaker':'Cardiff-Smart-Speaker(Dans PC)'}), 200, {'ContentType':'application/json'} 

@app.route('/connection/<token>', methods = ['POST'])
def connection(token):
    print(token)
    return token

if __name__ == '__main__':
    app.run('0.0.0.0')

Merge request reports