Questions tagged [hono]

8 questions
6
votes
2 answers

Hot-reload (HMR) with 'bun dev'

I'm trying the new bun platform (v0.1.6) with Hono. The steps I've followed: bun create hono test-api cd test-api bun dev Then the server shows this message: $ bun dev [1.00ms] bun!! v0.1.6 Link: http://localhost:3000 When I modify any file,…
Roberto
  • 8,586
  • 3
  • 42
  • 53
1
vote
1 answer

Typescript exported type from module is any

I have one Typescript module that exports a complex type created with the typeof operator, like below: // controller/createProfile.ts import { z } from 'zod'; import { zValidator } from '@hono/zod-validator'; const createProfileBody = z.object({ …
JonasLevin
  • 1,592
  • 1
  • 20
  • 50
0
votes
1 answer

Cloud2Edge installation

I have been trying to install the package eclipse cloud2edge on wsl2 with no luck so far. I have followed the steps mentionned in the official web site, but when i try installling it using the helm chart with the debug flag it's stuck at : service…
0
votes
1 answer

Device does not wait for a response even specifying the hono-ttd - ECLIPSE HONO

I am using Eclipse Hono and I am experiencing an issue with hono-ttd, that is, when I launch the HTTP POST command from the device to send telemetry data by specifying e.g. hono-ttd=60, the device does not wait to receive a command instead it…
0
votes
1 answer

HonoJs: Best way to start a Twitter SDK connection in Hono with CloudFlare?

In an old-school server environment, you initialize an SDK (like the Twitter SDK) when the server starts up, using dotenv to read secrets and tokens from your .env file like so: import dotenv from 'dotenv'; import {Client} from…
ansorensen
  • 1,276
  • 1
  • 14
  • 29
0
votes
1 answer

How can I use mqtt to connect hono to ditto?

Is it possible to use mqtt to send data from a device (arduino in my case) to hono and then send these data to ditto via mqtt? in my case I have arduino that send a value via mqtt to hono, but now i need the data to be received by ditto. For the…
0
votes
0 answers

how to get data from hono to jhipster-Ionic application using http get requests

I am using hono to get IoT Data to my Jhipster-Ionic Application. How to: a) send http get request to hono api, to fetch data and show it on my echarts dashboard. b) How do I send commands back to Hono using my application to control my IoT…
0
votes
1 answer

HonoJS CORS with cloudflare worker

I'm starting with cloudflare worker and used the recommended routing framework HonoJS. Now the documented way of implementing cors functionallity doesn't work for me on my developement machine (npm run dev). I didn't test it on production, since I…
David
  • 318
  • 2
  • 16