Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Class as Library
#1

(This post was last modified: 11-18-2020, 01:05 AM by pippuccio76.)

HI , i try to use this class :

https://github.com/bluerhinos/phpMQTT

as library .

I change class name as PhpMQTT

and load the library :

Code:
    $params = array('address' => $server, 'port' => $port ,'clientid' => $client_id );
    $this->load->library('phpMQTT',$params);

but when i call a method of library i have :


Message: Undefined property: Ajax_call_device::$phpMQTT on line 283

this is the 283 line :

if ($this->phpMQTT->connect(true, NULL, $username, $password)) 

How can i solve ?
Reply


Messages In This Thread
[SOLVED]Class as Library - by pippuccio76 - 11-15-2020, 01:28 PM
RE: Class as Library - by InsiteFX - 11-15-2020, 02:00 PM
RE: Class as Library - by pippuccio76 - 11-16-2020, 04:59 AM
RE: Class as Library - by InsiteFX - 11-16-2020, 06:13 AM
RE: Class as Library - by pippuccio76 - 11-16-2020, 06:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB