Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Capsicum

About

Username
Capsicum
Location
Germany
Joined
Visits
161
Last Active
Roles
Member, Private
Your Name
Holger
Thanked
3

Comments

  • After the todays update of Ubuntu, it works. Regards Holger
  • Hello rikkman, let topic = '/channels/439683/publish/fields/field1/writeAPIkey';
  • Hello, I continued testing: in ds18b20.js the following library is loaded: load('api_arduino_onewire.js'); If I put the code before this line it works. If I put the code behind this line it will cause the error. I will check now api_arduino_o…
  • Thanks. It works.
  • Hello, if I click on the link from here: The latest os release has api_onewire.js example. I made a rough test using this example. I convert the device's address into a hex string to represent device ID. Here is the code snippet. Only an empty…
  • Input: {"src":"out-topic","id":1,"method":"Sum","args":{"a":1,"b":4}} Output: [Jun 29 21:27:34.944] mgos_mqtt_ev MQTT event: 203 [Jun 29 21:27:34.951] mg_rpc_ev_handler 0x3fff107c GOT FRAME (62): {"src":"out-topic","id":1,"method":"Sum…
  • With the help from this post: https://forum.mongoose-os.com/discussion/comment/3612/#Comment_3612 I sent the message through "HIVEMQ" It works now. I get a result and additional an error: esp8266_DXXXXX 30 1498684251.046 2|mg_rpc_get_channel_i U…
  • Hello, the api_i2c.js has changed. Now you have to use: let result= I2C.read(myI2C, 0x45, 6, true); //Read data (6 Bytes) and release bus
  • Here is mine: see file.
  • Example: (read temperature and humidity from SHT30 device) load('api_i2c.js'); let myI2C = I2C.get_default(); I2C.write(myI2C, 0x45, "\x21\x30", 2, true); // initiate periodic measurement of SHT30, address 0x45 let result = "00000000000000000000";…
  • Hello, I have a similar (same?) issue: libs: - origin: https://github.com/mongoose-os-libs/mjs - origin: https://github.com/mongoose-os-libs/ota-http-server - origin: https://github.com/mongoose-os-libs/rpc-loopback - origin: https://githu…
  • This works for my LoLin. config_schema: - ["i2c.enable", true] - ["i2c.scl_gpio",5] - ["i2c.sda_gpio",4] Reset, is not connected. I use GPIO4. The adress is 60 (0x3c) let d = Adafruit_SSD1306.create_i2c(4 /* RST GPIO */ , Adafruit_SSD1306.R…
  • Thanks, you were right. I used an old example and only changed mos.yml.
  • It works now. Thanks to all for the support.
  • Hello, I cloned the github example from obove. I did: mos build --arch esp32 I receive still the following error: CXX Adafruit_SSD1306.o CC core/ipv4/ip4.o CC mgos_rpc_channel_uart.o CC bluedroid/bta/sdp/bta_sdp_api.o CC bluedroid/bta/av/bta_av…
  • The firmware was not build. This Error comes later: CC bluedroid/btc/profile/std/a2dp/btc_media_task.o CC mgos_arduino_adafruit_ssd1306_c.o CXX mgos_arduino_ssd1306.o CXX Adafruit_SSD1306.o /tmp/fwbuild-volumes/users/test/mjs_hello/build_requests/…
  • Thanks. This was what I am looking for. Holger
  • I had the same problems. I insert (replace the old way with modules) of the content of one the examples from github to my mos.yml. Then mos ls worked again. libs: - origin: https://github.com/mongoose-os-libs/mjs - origin: https://github.com/m…
  • From my RTC (DS 3231) I receive an 7 Byte long string which contains the data for the time. This data is BCD encoded, which ,means the first 4 bits and the second 4 bits encode a digit of the time information ( each byte has 2 digits). https://en.…
  • Same in the c_arduino_ssd1306 example. works with: struct mgos_i2c *i2c = mgos_i2c_get_global(); mgos_i2c_write(i2c,0x3c, "\0x00",1, true /* stop */); d1=new Adafruit_SSD1306(Adafruit_SSD1306::RES_128_64); without not. But wrong size ? The fo…
  • It works now. Thanks for your help. First I tried all GPIOs as a reset pin. No success. Then I started testing the I2C connection in init.js By chance I found, that the following code in the beginning lets the display working: ''load('api_i2c.js…
  • I changed it to 0x3C (60) let d = Adafruit_SSD1306.create_i2c(4 /* RST GPIO */ , Adafruit_SSD1306.RES_128_64); // Initialize the display. d.begin(Adafruit_SSD1306.SWITCHCAPVCC, 0x3c, true /* reset */ ); d.display(); The output of the I2C.Scan from…
  • I have a D-Duino 32 with an integrated OLED Display. Example (https://www.tindie.com/products/lspoplove/d-duino-32esp32-and-096oled-display/) SCL is connected to 5 SDA is connected to 4 The demos in Arduinio IDE using u8g and adafruit_ssd1606 w…
  • Thanks for your fast and helpful response. I will encode the data like an IP Address.