Questions tagged [mongoose-os]

Mongoose-OS is an IoT firmware development framework.

See https://mongoose-os.com/ for details.

18 questions
2
votes
3 answers

In AWS CloudFormation stack status is changing to ROLLBACK_COMPLETE from CREATE_IN_PROGRESS while creating new stack using aws cli

I am on the AWS educate account and closely following this tutorial https://github.com/mongoose-os-apps/aws-iot-button This is an Internet Button reference project: when a button on the device is pressed, a cloud backend gets a notification and…
1
vote
0 answers

How can I Connect flutter app to aws iot?

I want to control aws iot devices through flutter mobile app. I registered device in aws iot things, Now how can I control that device through my mobile app. I'm using Nodemcu with mongoose os.
1
vote
1 answer

"Invalid gcp.key" from Mongoose OS when connecting ESP32 to Google Cloud Platform

I am trying to connect my ESP32 device to Google Cloud Platform (GCP) with Mongoose OS. I am new to Mongoose OS, but have got as far as to build and flash code as well as connection to wifi. But I get problems when I add info to the mos.yml file to…
1
vote
0 answers

how to implement timer and delay in within any loop in mongoose os?

I am trying to use Timer as a delay function. as I tried to delete the previous set time with Timer.de() but still somehow it triggered something and I got the error below the code. how to achieve the delay functionality in while loop. I tried the…
1
vote
0 answers

COM Port not available on Mongoose OS for IoT sensor device TI CC3200

Just want to build Google IOT core with mongoose OS running for sensing temperature data on google PUBSUB. I have a problem starting from beginning while not able to the connect via an approved google Core IOT Device - "TI CC3200". Its not able to…
0
votes
0 answers

Correct way to pass a char array to a callback function in C

I'm dynamically repeatedly creating a char[] of fixed length 32 and pass it to function that stores the pointer in a struct and passes it later on to a callback function. Unforntunately I don't know the correct way to allocate the memory for this…
0
votes
0 answers

C program fails to build in mongoose os (first tiem using c)

I am super new to C, I usually use javascript, but I am working on a hardware project and there is no library for js that I could find. I am using a MD_MAX7219 led matrix with a esp8266 node mcu and am using mongoose os basic c github repo mos clone…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98
0
votes
1 answer

Using amazon mqtt to publish a button press from a esp8266

I have the following code that prints to my serial console in mongoose os. I can see the device in amazon aws, and in mdash as online. I get back a 0 from the pub and it never sends a message to aws mqtt I have subscribed to the topic in the test…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98
0
votes
1 answer

How to make RPC calls over MQTT (Google Iot Core + Mongoose OS)

RPC calls over MQTT Hi, I want to publish a telemetry event by issuing a PUBLISH message(RPC call) to an MQTT topic (${device.id}/rpc) references: [RPC over MQTT][(ttps://mongoose-os.com/docs/mongoose-os/api/rpc/rpc-mqtt.md) Publishing telemetry…
Ramit Dour
  • 91
  • 1
  • 2
  • 8
0
votes
1 answer

Creating Hotspot in ESP32 using Mongoose OS

I need to create a WiFi hotspot using ESP32 which is connected to an existing WiFi network. How to create a hotspot using ESP32 in Mongoose OS?
0
votes
0 answers

MQTT is is not Connecting to Google IOT core After Retry

I am using Mangoose os + Google IOT core to create my last year automation project. i have used this tutorial to develop a basic structure to create my project. now problem is when i try to connect my esp32 through my Mobile Hotspot, it works…
0
votes
1 answer

GPIO.read() not working in mongoose os (mos tool)

I am using ESP32. I am working with inbuilt led on GPIO 2. I want to read the level of pin. let led = 2; GPIO.set_mode(led, GPIO.MODE_OUTPUT); GPIO.write(led, 0); Timer.set(1000, true, function(){ print(GPIO.read(led)==0); if…
ameya
  • 201
  • 2
  • 16
0
votes
2 answers

Azure Iot Hub To Esp-32 (Running Mongoose OS)

I’ve been trying for hours to find a way to receive messages on my esp running Mongoose OS from the Azure IoT Hub, my goals is to trigger some code(or function) from the Azure IoT Hub(using Functions apps, but I’ll figure this out later). How can I…
0
votes
1 answer

Detecting button press / GPIO pulldown with ESP32 and Mongoose OS

For an ESP32, under Mongoose OS, I’m trying to write some code to detect that a button was pushed (GPIO pin pulled to GND). I wrote the code below, but it constantly prints that the button is pushed, so it thinks the button is always pushed, except…
Jim Archer
  • 1,337
  • 5
  • 30
  • 43
0
votes
1 answer

Is it possible to set a Timer with condition in Mongoose OS?

I am familiar with using mgos_msleep(value) or mgos_usleep(value). However, using sleep is not good for the device. Can someone suggest a better approach?
1
2