Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized string offset: 0 #108

Open
arieffathir opened this issue Sep 9, 2020 · 1 comment
Open

Uninitialized string offset: 0 #108

arieffathir opened this issue Sep 9, 2020 · 1 comment

Comments

@arieffathir
Copy link

There is error Uninitialized string offset: 0 in line number Line Number: 238
already change code buffer to "

    $buffer .= chr(0x00);$i++; // Length MSB
    $buffer .= chr(0x04);$i++; // Length LSB
    $buffer .= chr(0x4d);$i++; // M
    $buffer .= chr(0x51);$i++; // Q
    $buffer .= chr(0x54);$i++; // T
    $buffer .= chr(0x54);$i++; // T
    $buffer .= chr(0x04);$i++; // // Protocol Level

Using PHP 7 (Codeigniter)
Using CloudMQTT

Please help.

@xuchl
Copy link

xuchl commented Dec 31, 2021

maybe like this
$socketContext = stream_context_create(
[
'ssl' => [
'verify_peer_name' => true,
'cafile' => $this->cafile,
'local_cert'=>$this->local_cert,
'local_pk'=>$this->local_pk,
]
]
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants