* A sub-second precision version of time().
You can find the above in the header file mongoose.h.
I've never used it myself. Good luck, I hope it solves your requirement.
I got into the examples and got them working. I took the next step and ran Google's Node.js example to get the pub/sub temperature/humidity data from the ESP32.
It was very easy to get a simple demo functioning. The next step would be writing/rea…
I've got 2 books devoted to Websocket. There is only brief mention of Apache in one of them. They provide this link:
This is about an Ap…
Congratulations on Websocketing!
I've done almost zero with Apache, but I need to learn if I ever put any web-facing devices online.
Looks like there are options for Apache which will get the client IP forwarded in a special header.
I see you've done some work with PRU + RemoteProc. I spent a bit of time experimenting with the same combination. Now that I have spent time with ESP32 and Mongoose-OS, the PRU seems too constrained. If you could only put an RTOS on it, maybe, bu…
This looks like the prelude to the Websocket "handshake" process. There is a standard for this, and well above my amateur level!
I believe Sergey has commented on this, and this is why you have the for(::) loop and the mg_mgr_poll(). It cranks th…
OK, now I understand, you are going to use Mongoose Networking library on the Beaglebone (I think)!
I was thinking the Beaglebone would be some sort of master, with a Mongoose based slave device, perhaps embedded in the locomotive.
Is the C++ appl…
I"m not following exactly what you are trying to do, but I think it is similar to what I have done.
I see you are using the Mongoose Networking library in the "raw" form. Well, "raw" meaning relative to Mongoose-OS.
Mongoose-OS seems to take the …
Thanks Rojer, that resolved the issue.
That has been a source of confusion, what exactly you need to have to get certain functionality.
Also, when you include a library, do you also need a #include in the source file, or not?
It seems the trend i…
I may be observing a related issue. I have a simple project from about June (I think) which is a simple demonstration of C based RPC.
All it does is send a command to toggle an LED connected to a GPIO of an ESP32. This worked great.
So I return …
There is example code for Node.js and other frameworks provided by Google which allows getting to the incoming data from the IOT device.
I was able to get the example included with the Mongoose Google IOT kit working with this.
The temperature and…
Excellent! I think you will be happy with the Capture module for your application.
One note of caution; be careful about using too many printf statements to the console. Keep them to a minimum, and short output. I found too much of these debuggi…
This is a reduced version of one of the ESP-IDF examples:
is used as a header file in main.c. The header file accomplishes the initial set-up a…
There is a lot of functionality in the MCPWM. Focus on the capture module. That is what does the counting and timing. You can mostly ignore the PWM functions, except maybe a bit of configuration/enabling, the capture module can be used and ignore…
There are examples in the ESP-IDF:
Look in examples/peripherals/mcpwm
Also, I have some code that is still in development which I derived from these examples.
I can post that later. I am working on a PID mot…
What device are you using?
If you have the ESP32, you can use the PWM module counter.
This is a hardware peripheral specifically intended for measuring things like RPM of moving things.
This counter would probably provide the precision you requir…
I can give you some general ideas, and how I got going with ESP32 and Mongoose.
First, there were a series of youtube videos which were very helpful.
I can't find them at the mongoose-os website, but there are some still posted at youtube.
Are you trying to use pure Mongoose networking only, or within the framework of Mongoose-OS?
I followed the path of trying to use the Mongoose networking constructs, the same as you show, within the Mongoose-OS frame work on ESP32.
That did not wo…
OK, I ran through the process and it worked, even after all of the updates.
Do you have your device powered up, connected to the internet via WIFI, with the special IOT firmware installed?
Note that there is a pull-down in the mos ui which has a s…
1. Add --verbose to mos command.
2. Try adding a gcloud --verbosity option: https://cloud.google.com/sdk/gcloud/reference/
Not sure this will work, just a wild hacker's guess.
I ran the commands successfully. But this was …
At least from Chromium, your examples all look the same. I think the whitespace is being removed.
I think what you need to do is to surround the code using the toolbar above.
Paste the code, and then highlight the code, and then se…
I've got a laptop with Ubuntu which I use on the go, and I easily reproduced what I reported above using a "bare app".
What I suggest is to create a "bare app" and see if you can reproduce:
mos init --arch=esp32
and then look at build/…
Working here. This is a snippet of build/gen/sdkconfig before adding build_vars:
What you describe is easily done. You could use an IDE, like Eclipse. Or any favorite text editor. Thanks to mos, there is no special configuration required.
What I do is initialize a git repository. Then cd inside the repository and run mos in…
Today, without changing anything else, I ran it again and it completed:
gcloud projects create gregr-project1
Create in progress for [https://cloudresourcemanager.googleapis.com/v1/projects/gregr-project1].
Waiting for [operations/pc.46300381110133…