IoT Greengrass protocol

0

Hi, I will run greengrass in an Embedded Linux environment. There is an application in a Linux environment, and this application and greengrass must be able to communicate with each other. Applications cannot communicate with MQTT.

What protocol should I use? And how can I implement it?

Thank you.

  • Could you clarify more on how you'd like your application to communicate with Greengrass?

    • If your application runs as a Greengrass component, you can communicate using pubsub mechanism offered by Greengrass for local messaging between the components.
    • Otherwise, you can create a Greengrass component that relays communication between your application and Greengrass.
  • Hello. The application was not deployed with greengrass; it is an independent application. I need a way for the application and greengrass to communicate.

질문됨 5달 전471회 조회
1개 답변
1

Hi, we offer Greengrass IPC for communication between greengrass components, please checkout this guide: https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html. If you need to communicate between processes which are not Greengrass components or cannot use Greengrass IPC, then, please use existing IPC solutions for linux

AWS
yitingb
답변함 5달 전
  • Hi. Are you talking about Linux IPCs like pipes, queues, and sockets?

  • Basically yes. Greengrass offers our IPC which is linked in the answer above; it is usable by any Greengrass component. If you cannot use that then you would need to solve your problem on your own. We'd recommend using well proven existing solutions.

  • Thank you for your answer. I have one more question. When greengrass and applications communicate, can they deliver data to IoT Core using HTTP, HTTPS, or TCP other than MQTT? If that's possible, can you give me related data?

  • IoT Core is MQTT, why can't you use MQTT? Greengrass requires an MQTT connection to IoT Core over the internet to work.

    If you want to use something else you can certainly do that to. Greengrass is incredibly simple, it is just executing the code that you tell it to run. Your code is free to do anything at all. It can upload data to S3 or anything else that exists.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠