lt;
;;; GENERATED BY CHICKEN-BIND FROM mosquitto.h
(begin)
;;; END OF FILE
8<
(this is the 'mosquitto.h' file:
https://github.com/eclipse/mosquitto/blob/master/lib/mosquitto.h)
Any idea, where I should look for the
I adapted the Telebot (Telegram client) egg to be installable as Chicken 5
egg:
https://github.com/recumbentbirder/Telebot/tree/make-chicken-5-egg
This works fine to install on my Arch Linux (Chicken installed via packet
manager) to install via *chicken-install -s*.
On my Raspberry Pi 3+ I ins
error message was really strange ...
On Wed, Jan 9, 2019 at 9:20 AM Christoph Lange wrote:
> I adapted the Telebot (Telegram client) egg to be installable as Chicken 5
> egg:
>
> https://github.com/recumbentbirder/Telebot/tree/make-chicken-5-egg
>
> This works fine to install on
Dear Chickeneers!
I might be stupid or blind, but I can't find a way of announcing foreign
libraries to 'csc' that have to be linked to my binary. I have the
following code:
*(import bind)*
*(bind "int mosquitto_lib_init(void);")*
*(display (mosquitto_lib_init))*
When doing 'csc mqtt.scm' on it
I wrote the following in my attempt to interface to the mosquitto MQTT
library:
(bind* "struct mosquitto *mosquitto_new(const char *id,
___bool clean_session,
void *obj);")
(define NULL (object->pointer 0))
(define m
After I now managed quite a lot of my interfacing to the mqtt library, I'm
stuck with the following:
I have the following definition of a message struct, which I in fact get
back a pointer to, from a callback:
(bind* "struct mosquitto_message{
int mid;
char *topic;
>
> i haven’t used the bind egg but the documentation "General Operation”
> section beginining with "Structure and union definitions …” seems relevant.
>
Haha, yes, thanks. Finding the relevant parts of the docs seems to be the
challenge in the beginning. Will read that.
it rolls access routines
emory)
>
> > On Mar 27, 2019, at 12:14 PM, Christoph Lange
> wrote:
> >
> > i haven’t used the bind egg but the documentation "General Operation”
> section beginining with "Structure and union definitions …” seems relevant.
> >
> > Haha, yes, thanks. Fi
Thanks! This all works now, and I learned a lot.
I now get a void pointer to some data in memory, and the length of the
> payload. How can I make that e.g. a blob? Or a string?
>
> we’re trying to stop using string for non-char data so blob please ;-)
>
Sorry. Didn't want to frighten you ;-) I al
in)
>(newline)))
> (let-values (((res major minor revision) (mosquitto-lib-version)))
> (display major) (newline)
> (display minor) (newline)
> (display revision) (newline))
> ;; #f is equivalent to C's NULL
> (define mqttc (mosquitto-new #f #t #f))
> (display &
width works on the
other hand: in the remaining string, the ä is represented by only one #\.
If I don't use the UTF8 string equivalents by importing 'utf8', it would be
two.)
Any hint for me?
/Christoph
--
Christoph Lange
Lotsarnas Väg 8
430 83 Vrångö
n though '(list->string (string->list s1))', with my pure
ASCII string, reverses without fault.
I guess I have some problems understanding some utf8 concepts?!
/Christoph
On Mon, Feb 17, 2020 at 3:38 PM wrote:
> Christoph Lange wrote:
> > meaning, that the ä isn
44 PM wrote:
> Christoph Lange wrote:
> > Yes, this helps. Kind of ;-) ... using the character set
> > char-set:alphabetic, my umlauts are now parsed. But I don't get them back
> > in my result, at least not as printable characters. Instead, the
> following
> > h
13 matches
Mail list logo