Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUB on http, SUB on mqtt #126

Closed
hendrikdm opened this issue Dec 1, 2017 · 4 comments
Closed

PUB on http, SUB on mqtt #126

hendrikdm opened this issue Dec 1, 2017 · 4 comments

Comments

@hendrikdm
Copy link

hendrikdm commented Dec 1, 2017

BUG REPORT

  1. What were you trying to achieve?
    Test the multiprotocol broker, publish on http and subscribe on mqtt

  2. What are the expected results?
    The message should be available on mqtt.

  3. What are the received results?
    Did not receive the message on mqtt after publishing on HTTP.

  4. What are the steps to reproduce the issue?
    Follow the getting started guide, on docker, subscribe to mqtt with the following:

mosquitto_sub -d -v -h x.x.x.x -u 2572a806-d504-11e7-9c5d-0242ac110004 -P eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MTE5NTk5NDQsImlzcyI6Im1haW5mbHV4Iiwic3ViIjoiMjU3MmE4MDYtZDUwNC0xMWU3LTljNWQtMDI0MmFjMTEwMDA0In0.poMiDvG6duO7EvPzE38MFm2Emv0n18T2z8ayiUDfMJA -t mainflux/channels/49f06660-d504-11e7-9c5e-0242ac110004/messages/senml-json

Publish with:

curl -s -S -i -X POST -H "Content-Type: application/senml+json" -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MTE5NTk5MDIsImlzcyI6Im1haW5mbHV4Iiwic3ViIjoiMGM1MmMzNzUtZDUwNC0xMWU3LTljNWMtMDI0MmFjMTEwMDA0In0.gDDBndpG_UmrZk_5AoQyWcyL_LdylpqZpkRJuezHWH0" x.x.x.x:7070/channels/49f06660-d504-11e7-9c5e-0242ac110004/messages -d '[{"bn":"some-base-name:","bt":1.276020076001e+09, "bu":"A","bver":5, "n":"voltage","u":"V","v":120.1}, {"n":"current","t":-5,"v":1.2}, {"n":"current","t":-4,"v":6.0}]'
  1. In what environment did you encounter the issue?
    Docker on ubuntu server
@drasko
Copy link
Contributor

drasko commented Dec 1, 2017

@hendrikdm thanks for submitting the issue, we're on it.

@drasko
Copy link
Contributor

drasko commented Dec 4, 2017

@mijicd I am getting in mqtt-adapter:

{ channel: 'e8ca2f5c-d897-11e7-a234-9cb6d0e58817',
  publisher: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MTIzNTMxMjMsImlzcyI6Im1haW5mbHV4Iiwic3ViIjoiOTY4OGZlNDEtZDg5Ny0xMWU3LWEyMzMtOWNiNmQwZTU4ODE3In0.PERptP7w0adleb24ll-QVD02tsKyT3BYD1-lXq3_hBI',
  protocol: 'http',
  content_type: 'application/senml+json',
  payload: 'W3siYm4iOiJzb21lLWJhc2UtbmFtZToiLCJidCI6MS4yNzYwMjAwNzYwMDFlKzA5LCAiYnUiOiJBIiwiYnZlciI6NSwgIm4iOiJ2b2x0YWdlIiwidSI6IlYiLCJ2IjoxMjAuMX0sIHsibiI6ImN1cnJlbnQiLCJ0IjotNSwidiI6MS4yfSwgeyJuIjoiY3VycmVudCIsInQiOi00LCJ2IjoxLjN9XQ==' }

content_type should be parsed and senml-json should be produce out of it, as it is used here: https://github.com/mainflux/mqtt-adapter/blob/master/mqtt.js#L56

@drasko
Copy link
Contributor

drasko commented Dec 4, 2017

Should be fixed by https://github.com/mainflux/mqtt-adapter/commit/4df7bc63b16cb7a31af76a391071aecbf45e9f47

@hendrikdm
Copy link
Author

resolved, thank you.

@drasko drasko closed this as completed Dec 4, 2017
mteodor pushed a commit to mteodor/mainflux that referenced this issue Jun 9, 2021
* NOISSUE - Add Organisations (Users groups) page

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Implement delete Org

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Add Memberships card in Users page

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix typo

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix typo

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* fix typo

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix typo

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix typo

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Add groups path to nginx

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
arvindh123 pushed a commit to arvindh123/magistrala that referenced this issue Dec 17, 2023
* feat(service): Add new "invitations" service

This commit adds a new service called "invitations" to the existing file. The service includes the necessary imports and initializes components for its functionality. It also includes configuration settings and a Docker Compose file. Additionally, instructions for deploying and using the service are provided, along with a function to create an HTTP handler.

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* docs(api): invitation api

The commit adds documentation for an API that allows users to manage invitations. It includes information about the endpoints, parameters, data types, and components used in the API. The documentation also outlines the properties and specifications of the Invitation object. This commit provides a comprehensive overview of the API's functionality and structure.

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* fix: accept invitation to take in domain

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* refactor(invitations): rename domain to domainID

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* Authorize on id(domain+user) rather than user

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

---------

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants